]> git.sur5r.net Git - openldap/commitdiff
Fix some NEW_LOGGING errors
authorKurt Zeilenga <kurt@openldap.org>
Fri, 5 Oct 2001 21:49:04 +0000 (21:49 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 5 Oct 2001 21:49:04 +0000 (21:49 +0000)
servers/slapd/acl.c
servers/slapd/back-ldbm/cache.c

index c71cee75bb0c929f7d406510221ba80b806e6f28..9ae0246de216a09c5553b6ebfa6d6dfb357776f2 100644 (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 ) {
index 8f012501266a359395f72e07685f60bf817449a4..d9a7c65149495b686b960cafeae76b794db9e0f0 100644 (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",