Fix some debug statements

This commit is contained in:
Howard Chu 2002-01-06 07:21:06 +00:00
parent 50277c6abe
commit 26e327f32e
9 changed files with 18 additions and 18 deletions

View file

@ -1045,12 +1045,12 @@ acl_check_modlist(
LDAP_LOG(( "aci", LDAP_LEVEL_DETAIL1,
"acl_check_modlist: conn %d backend default %s access %s to \"%s\"\n",
conn->c_connid, access2str( ACL_WRITE ),
be->be_dfltaccess >= ACL_WRITE ? "granted" : "denied", op->o_dn ));
be->be_dfltaccess >= ACL_WRITE ? "granted" : "denied", op->o_dn.bv_val ));
#else
Debug( LDAP_DEBUG_ACL,
"=> access_allowed: backend default %s access %s to \"%s\"\n",
access2str( ACL_WRITE ),
be->be_dfltaccess >= ACL_WRITE ? "granted" : "denied", op->o_dn );
be->be_dfltaccess >= ACL_WRITE ? "granted" : "denied", op->o_dn.bv_val );
#endif
return be->be_dfltaccess >= ACL_WRITE;

View file

@ -92,7 +92,7 @@ retry: /* transaction retry */
Debug( LDAP_DEBUG_ARGS,
"<=- bdb_delete: no such object %s\n",
dn, 0, 0);
dn->bv_val, 0, 0);
if ( matched != NULL ) {
matched_dn = ch_strdup( matched->e_dn );
@ -221,7 +221,7 @@ retry: /* transaction retry */
case 0:
Debug(LDAP_DEBUG_ARGS,
"<=- bdb_delete: non-leaf %s\n",
dn, 0, 0);
dn->bv_val, 0, 0);
rc = LDAP_NOT_ALLOWED_ON_NONLEAF;
text = "subtree delete not supported";
break;

View file

@ -344,7 +344,7 @@ bdb_dn2id_children(
free( key.data );
Debug( LDAP_DEBUG_TRACE, "<= bdb_dn2id_children( %s ): %schildren (%d)\n",
dn,
dn->bv_val,
rc == 0 ? "" : ( rc == DB_NOTFOUND ? "no " :
db_strerror(rc) ), rc );

View file

@ -171,7 +171,7 @@ bdb_modify(
DB_TXN *ltid = NULL;
struct bdb_op_info opinfo;
Debug( LDAP_DEBUG_ARGS, "bdb_modify: %s\n", dn, 0, 0 );
Debug( LDAP_DEBUG_ARGS, "bdb_modify: %s\n", dn->bv_val, 0, 0 );
if( 0 ) {
retry: /* transaction retry */

View file

@ -61,7 +61,7 @@ bdb_referrals(
Debug( LDAP_DEBUG_TRACE,
"bdb_referrals: op=%ld target=\"%s\" matched=\"%s\"\n",
(long) op->o_tag, dn, matched_dn );
(long) op->o_tag, dn->bv_val, matched_dn );
if( is_entry_referral( matched ) ) {
rc = LDAP_OTHER;

View file

@ -40,7 +40,7 @@ ldbm_back_attribute(
#ifdef NEW_LOGGING
LDAP_LOG(( "backend", LDAP_LEVEL_ARGS,
"ldbm_back_attribute: gr dn: \"%s\"\n", entry_ndn ));
"ldbm_back_attribute: gr dn: \"%s\"\n", entry_ndn->bv_val ));
LDAP_LOG(( "backend", LDAP_LEVEL_ARGS,
"ldbm_back_attribute: at: \"%s\"\n", entry_at_name));
LDAP_LOG(( "backend", LDAP_LEVEL_ARGS,
@ -49,7 +49,7 @@ ldbm_back_attribute(
#else
Debug( LDAP_DEBUG_ARGS,
"=> ldbm_back_attribute: gr dn: \"%s\"\n",
entry_ndn, 0, 0 );
entry_ndn->bv_val, 0, 0 );
Debug( LDAP_DEBUG_ARGS,
"=> ldbm_back_attribute: at: \"%s\"\n",
entry_at_name, 0, 0 );
@ -79,11 +79,11 @@ ldbm_back_attribute(
#ifdef NEW_LOGGING
LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
"ldbm_back_attribute: cannot find entry (%s)\n",
entry_ndn ));
entry_ndn->bv_val ));
#else
Debug( LDAP_DEBUG_ACL,
"=> ldbm_back_attribute: cannot find entry: \"%s\"\n",
entry_ndn, 0, 0 );
entry_ndn->bv_val, 0, 0 );
#endif
return LDAP_NO_SUCH_OBJECT;

View file

@ -611,11 +611,11 @@ try_again:
#ifdef NEW_LOGGING
LDAP_LOG(( "cache", LDAP_LEVEL_INFO,
"cache_find_entry_dn2id: (%s) %ld not ready: %d\n",
ndn, id, state ));
ndn->bv_val, id, state ));
#else
Debug(LDAP_DEBUG_TRACE,
"====> cache_find_entry_dn2id(\"%s\"): %ld (not ready) %d\n",
ndn, id, state);
ndn->bv_val, id, state);
#endif
@ -633,11 +633,11 @@ try_again:
#ifdef NEW_LOGGING
LDAP_LOG(( "cache", LDAP_LEVEL_DETAIL1,
"cache_find_entry_dn2id: (%s): %ld %d tries\n",
ndn, id, count ));
ndn->bv_val, id, count ));
#else
Debug(LDAP_DEBUG_TRACE,
"====> cache_find_entry_dn2id(\"%s\"): %ld (%d tries)\n",
ndn, id, count);
ndn->bv_val, id, count);
#endif

View file

@ -103,10 +103,10 @@ ldbm_back_delete(
if ( has_children( be, e ) ) {
#ifdef NEW_LOGGING
LDAP_LOG(( "backend", LDAP_LEVEL_ERR,
"ldbm_back_delete: (%s) is a non-leaf node.\n", dn ));
"ldbm_back_delete: (%s) is a non-leaf node.\n", dn->bv_val ));
#else
Debug(LDAP_DEBUG_ARGS, "<=- ldbm_back_delete: non leaf %s\n",
dn, 0, 0);
dn->bv_val, 0, 0);
#endif
send_ldap_result( conn, op, LDAP_NOT_ALLOWED_ON_NONLEAF,

View file

@ -217,7 +217,7 @@ slap_tool_init(
rc = dnNormalize( NULL, &base, &nbase );
if( rc != LDAP_SUCCESS ) {
fprintf( stderr, "%s: slap_init invalid suffix (\"%s\")\n",
progname, base );
progname, base.bv_val );
exit( EXIT_FAILURE );
}