]> git.sur5r.net Git - openldap/commitdiff
Print long with %ld, not %d.
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 29 Apr 2003 14:55:36 +0000 (14:55 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 29 Apr 2003 14:55:36 +0000 (14:55 +0000)
servers/slapd/back-bdb/cache.c
servers/slapd/back-bdb/tools.c

index ec1490061ff7b6d95548c0e2c0ecb9c075b03c3c..f9d28852b7a583e9e22481765d967bdc744ed45e 100644 (file)
@@ -67,11 +67,11 @@ bdb_cache_entry_db_relock(
        if (rc) {
 #ifdef NEW_LOGGING
                LDAP_LOG( CACHE, DETAIL1, 
-                       "bdb_cache_entry_db_relock: entry %d, rw %d, rc %d\n",
+                       "bdb_cache_entry_db_relock: entry %ld, rw %d, rc %d\n",
                        ei->bei_id, rw, rc );
 #else
                Debug( LDAP_DEBUG_TRACE,
-                       "bdb_cache_entry_db_relock: entry %d, rw %d, rc %d\n",
+                       "bdb_cache_entry_db_relock: entry %ld, rw %d, rc %d\n",
                        ei->bei_id, rw, rc );
 #endif
        } else {
@@ -106,11 +106,11 @@ bdb_cache_entry_db_lock
        if (rc) {
 #ifdef NEW_LOGGING
                LDAP_LOG( CACHE, DETAIL1, 
-                       "bdb_cache_entry_db_lock: entry %d, rw %d, rc %d\n",
+                       "bdb_cache_entry_db_lock: entry %ld, rw %d, rc %d\n",
                        ei->bei_id, rw, rc );
 #else
                Debug( LDAP_DEBUG_TRACE,
-                       "bdb_cache_entry_db_lock: entry %d, rw %d, rc %d\n",
+                       "bdb_cache_entry_db_lock: entry %ld, rw %d, rc %d\n",
                        ei->bei_id, rw, rc );
 #endif
        }
index 6f02f6184e0870cd07087ce34b0fd908ccd0ccc7..b133362557cd4fef47e606c6582aca2d92ced1a8 100644 (file)
@@ -61,7 +61,7 @@ int bdb_tool_entry_close(
                unsigned i;
                fprintf( stderr, "Error, entries missing!\n");
                for (i=0; i<nholes; i++) {
-                       fprintf(stderr, "  entry %d: %s\n",
+                       fprintf(stderr, "  entry %ld: %s\n",
                                holes[i].id, holes[i].dn.bv_val, 0);
                }
                return -1;