]> git.sur5r.net Git - openldap/commitdiff
Fix some debug statements
authorHoward Chu <hyc@openldap.org>
Sun, 6 Jan 2002 07:21:06 +0000 (07:21 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 6 Jan 2002 07:21:06 +0000 (07:21 +0000)
servers/slapd/acl.c
servers/slapd/back-bdb/delete.c
servers/slapd/back-bdb/dn2id.c
servers/slapd/back-bdb/modify.c
servers/slapd/back-bdb/referral.c
servers/slapd/back-ldbm/attribute.c
servers/slapd/back-ldbm/cache.c
servers/slapd/back-ldbm/delete.c
servers/slapd/tools/slapcommon.c

index 5fd5d7f428fba8a061e885256476a10fa561bc6f..e63e71351cc2749c24e9af62197faeb2fe3f40dd 100644 (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;
 
index b5f50b3626f2092413bd7ff9692490d99528bc78..53a8928c846f51abb6b1fd7c6a40e63418c69198 100644 (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;
index 64b74aa9e7c593bf34ea37059fbd4e1015a38dc3..17b0650dfcf29a288bfc6dd0349dfbe8646b2ccb 100644 (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 );
 
index 1d7c3c067e07ac51d5adc866883e4a124297a9cc..336c2910560d6985433cfdc4602878979ef9b29a 100644 (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 */
index 7b401f8bf477be1a4639d61174f41bed6806f030..074491b4b432292c14a20b122b87ff59cedbf373 100644 (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;
index ecafef36b148e6be60ac57386d21ea34ff94fd4d..5a7dfa08691b14d858f7df2c409646d024bddf6e 100644 (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; 
index bde62fa0f569f242552e548160c36bbf599082dd..1a9f1c6fcfe3006acbf68e023d20bc565479c11f 100644 (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
 
 
index 74ff1b369b02f34d9dffe0ea3e525115e28d5040..5d2f63ec7e51a4b4114eed8db3edb50b15f95ebb 100644 (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,
index 93556dee125cf8dea04ced71326a02b33aa1d177..b608765127db4dbdb7039fb25d53cf1bfa619ca1 100644 (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 );
                }