Fix some NEW_LOGGING errors

This commit is contained in:
Kurt Zeilenga 2001-10-05 21:49:04 +00:00
parent fd5b806fc0
commit fdc0dd7d6a
2 changed files with 7 additions and 8 deletions

View file

@ -100,13 +100,12 @@ access_allowed(
#ifdef NEW_LOGGING
LDAP_LOG(( "acl", LDAP_LEVEL_ENTRY,
"access_allowed: conn %d %s access to \"%s\" \"%s\" requested\n",
conn->c_connid, access2str( access ), e->e_dn, attr ));
"access_allowed: conn %d %s access to \"%s\" \"%s\" requested\n",
conn ? conn->c_connid : -1, access2str( access ), e->e_dn, attr ));
#else
Debug( LDAP_DEBUG_ACL,
"=> access_allowed: %s access to \"%s\" \"%s\" requested\n",
access2str( access ),
e->e_dn, attr );
access2str( access ), e->e_dn, attr );
#endif
if ( op == NULL ) {

View file

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