From fe2492309afca957ad241a3406af0254cc6ff571 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 21 Jul 2005 08:54:04 +0000 Subject: [PATCH] improve messages --- servers/slapd/back-meta/bind.c | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/servers/slapd/back-meta/bind.c b/servers/slapd/back-meta/bind.c index d390407d9c..a1605805bc 100644 --- a/servers/slapd/back-meta/bind.c +++ b/servers/slapd/back-meta/bind.c @@ -223,8 +223,11 @@ retry:; tv.tv_usec = META_BIND_TIMEOUT; switch ( ldap_result( msc->msc_ld, msgid, 0, &tv, &res ) ) { case 0: - Debug( LDAP_DEBUG_ANY, "%s meta_back_single_bind: ldap_result=%d nretries=%d\n", - op->o_log_prefix, 0, nretries ); + Debug( LDAP_DEBUG_ANY, + "%s meta_back_single_bind: " + "ldap_result=0 nretries=%d%s\n", + op->o_log_prefix, nretries, + rebinding ? " rebinding" : "" ); if ( nretries != META_RETRY_NEVER ) { ldap_pvt_thread_yield(); @@ -255,7 +258,9 @@ retry:; ldap_abandon_ext( msc->msc_ld, msgid, NULL, NULL ); } - Debug( LDAP_DEBUG_ANY, "### %s meta_back_single_bind: err=%d nretries=%d\n", + Debug( LDAP_DEBUG_ANY, + "### %s meta_back_single_bind: " + "err=%d nretries=%d\n", op->o_log_prefix, rs->sr_err, nretries ); rc = slap_map_api2result( rs ); @@ -395,8 +400,11 @@ retry:; tv.tv_usec = META_BIND_TIMEOUT; switch ( ldap_result( msc->msc_ld, msgid, 0, &tv, &res ) ) { case 0: - Debug( LDAP_DEBUG_ANY, "%s meta_back_single_dobind: ldap_result=%d nretries=%d\n", - op->o_log_prefix, 0, nretries ); + Debug( LDAP_DEBUG_ANY, + "%s meta_back_single_dobind: " + "ldap_result=0 nretries=%d%s\n", + op->o_log_prefix, nretries, + rebinding ? " rebinding" : "" ); if ( nretries != META_RETRY_NEVER ) { ldap_pvt_thread_yield(); @@ -428,8 +436,10 @@ retry:; ldap_abandon_ext( msc->msc_ld, msgid, NULL, NULL ); } - Debug( LDAP_DEBUG_ANY, "### %s meta_back_single_dobind: err=%d nretries=%d\n", - op->o_log_prefix, rs->sr_err, nretries ); + Debug( LDAP_DEBUG_ANY, + "### %s meta_back_single_dobind: " + "err=%d nretries=%d\n", + op->o_log_prefix, rs->sr_err, nretries ); rc = slap_map_api2result( rs ); if ( rc == LDAP_UNAVAILABLE && nretries != META_RETRY_NEVER ) { -- 2.39.5