From 41c46bdb4ecae4ab3bad85b093a2c6b3b6153654 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 12 Jan 2006 06:07:42 +0000 Subject: [PATCH] Tone down dn2bv/bv2dn logging --- libraries/libldap/getdn.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index e93fc465b1..389dd0a03c 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -708,7 +708,7 @@ ldap_bv2dn_x( struct berval *bvin, LDAPDN *dn, unsigned flags, void *ctx ) str = bv->bv_val; end = str + bv->bv_len; - Debug( LDAP_DEBUG_TRACE, "=> ldap_bv2dn(%s,%u)\n", str, flags, 0 ); + Debug( LDAP_DEBUG_ARGS, "=> ldap_bv2dn(%s,%u)\n", str, flags, 0 ); *dn = NULL; @@ -890,8 +890,8 @@ return_result:; LDAP_FREEX( tmpDN, ctx ); } - Debug( LDAP_DEBUG_TRACE, "<= ldap_bv2dn(%s)=%d %s\n", str, rc, - ldap_err2string( rc ) ); + Debug( LDAP_DEBUG_ARGS, "<= ldap_bv2dn(%s)=%d %s\n", str, rc, + rc ? ldap_err2string( rc ) : "" ); *dn = newDN; return( rc ); @@ -3001,7 +3001,7 @@ int ldap_dn2bv_x( LDAPDN dn, struct berval *bv, unsigned flags, void *ctx ) bv->bv_len = 0; bv->bv_val = NULL; - Debug( LDAP_DEBUG_TRACE, "=> ldap_dn2bv(%u)\n", flags, 0, 0 ); + Debug( LDAP_DEBUG_ARGS, "=> ldap_dn2bv(%u)\n", flags, 0, 0 ); /* * a null dn means an empty dn string @@ -3310,8 +3310,8 @@ int ldap_dn2bv_x( LDAPDN dn, struct berval *bv, unsigned flags, void *ctx ) return LDAP_PARAM_ERROR; } - Debug( LDAP_DEBUG_TRACE, "<= ldap_dn2bv(%s)=%d %s\n", - bv->bv_val, rc, ldap_err2string( rc ) ); + Debug( LDAP_DEBUG_ARGS, "<= ldap_dn2bv(%s)=%d %s\n", + bv->bv_val, rc, rc ? ldap_err2string( rc ) : "" ); return_results:; return( rc ); -- 2.39.5