From: Kurt Zeilenga Date: Fri, 25 Aug 2000 23:51:10 +0000 (+0000) Subject: Add missing fprintf param X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2173 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f6a1c05b68355c64c2a79589248b15ee74b7799a;p=openldap Add missing fprintf param --- diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index 1c735b845e..c01c90f3f8 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -509,7 +509,8 @@ main( int argc, char **argv ) } if( ld == NULL ) { - fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); + fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", + rc, ldap_err2string(rc) ); return EXIT_FAILURE; } diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 717563fdce..2be61b8dad 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -576,7 +576,8 @@ main( int argc, char **argv ) } if( ld == NULL ) { - fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); + fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", + rc, ldap_err2string(rc) ); return EXIT_FAILURE; } diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index e958e60770..2e68fa816e 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -552,7 +552,8 @@ main(int argc, char **argv) } if( ld == NULL ) { - fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); + fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", + rc, ldap_err2string(rc) ); return EXIT_FAILURE; } diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index ad5af86010..9a6cb8838a 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -580,7 +580,8 @@ main( int argc, char *argv[] ) } if( ld == NULL ) { - fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); + fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", + rc, ldap_err2string(rc) ); return EXIT_FAILURE; } diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 3bb90f9454..dd2712bdcd 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -680,7 +680,8 @@ main( int argc, char **argv ) } if( ld == NULL ) { - fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); + fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", + rc, ldap_err2string(rc) ); return EXIT_FAILURE; }