Patch: More format bugs (ITS#1702) ================ Written by Hallvard B. Furuseth and placed into the public domain. This software is not subject to any license of the University of Oslo. ================ tls.c: Fix printf(%d, unsigned long). attr.c: Fix printf(%x, unsigned long). filterindex.c: Fix Debug(%d, ber_tag_t). idl.c: Fix Debug(%ld, 3). Hallvard B. Furuseth , March 2002. diff -u2 -r libraries/libldap/tls.c libraries/libldap/tls.c --- libraries/libldap/tls.c Sun Jan 27 03:48:08 2002 +++ libraries/libldap/tls.c Sun Mar 31 17:21:22 2002 @@ -179,5 +179,5 @@ if ( tls_def_ctx == NULL ) { Debug( LDAP_DEBUG_ANY, - "TLS: could not allocate default ctx (%d).\n", + "TLS: could not allocate default ctx (%lu).\n", ERR_peek_error(),0,0); goto error_exit; --- servers/slapd/back-bdb/attr.c~ Fri Jan 4 21:17:49 2002 +++ servers/slapd/back-bdb/attr.c Sun Mar 31 22:29:22 2002 @@ -183,8 +183,8 @@ #ifdef NEW_LOGGING LDAP_LOG(( "backend", LDAP_LEVEL_DETAIL1, - "attr_index_config: index %s 0x%04x\n", + "attr_index_config: index %s 0x%04lx\n", ad->ad_cname.bv_val, mask )); #else - Debug( LDAP_DEBUG_CONFIG, "index %s 0x%04x\n", + Debug( LDAP_DEBUG_CONFIG, "index %s 0x%04lx\n", ad->ad_cname.bv_val, mask, 0 ); #endif --- servers/slapd/back-bdb/filterindex.c~ Tue Jan 29 04:53:48 2002 +++ servers/slapd/back-bdb/filterindex.c Sun Mar 31 22:31:52 2002 @@ -113,6 +113,6 @@ default: - Debug( LDAP_DEBUG_FILTER, "\tUNKNOWN %d\n", - f->f_choice, 0, 0 ); + Debug( LDAP_DEBUG_FILTER, "\tUNKNOWN %lu\n", + (unsigned long) f->f_choice, 0, 0 ); } --- servers/slapd/back-bdb/idl.c~ Tue Feb 12 19:29:27 2002 +++ servers/slapd/back-bdb/idl.c Sun Mar 31 22:34:29 2002 @@ -268,5 +268,5 @@ if (ids[0] != BDB_IDL_RANGE_SIZE) { Debug( LDAP_DEBUG_ANY, "=> bdb_idl_fetch_key: " - "range size mismatch: expected %ld, got %ld\n", + "range size mismatch: expected %d, got %ld\n", BDB_IDL_RANGE_SIZE, ids[0], 0 ); cursor->c_close( cursor );