#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 ) {
#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",
#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",