From f6a1c05b68355c64c2a79589248b15ee74b7799a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 25 Aug 2000 23:51:10 +0000 Subject: [PATCH] Add missing fprintf param --- clients/tools/ldapdelete.c | 3 ++- clients/tools/ldapmodify.c | 3 ++- clients/tools/ldapmodrdn.c | 3 ++- clients/tools/ldappasswd.c | 3 ++- clients/tools/ldapsearch.c | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) 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; } -- 2.39.5