From caac5b76fb4ba9d4feafc398e416bce591a7517e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 12 Nov 2007 08:34:55 +0000 Subject: [PATCH] Cleanup debug msgs --- servers/slapd/back-bdb/monitor.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/servers/slapd/back-bdb/monitor.c b/servers/slapd/back-bdb/monitor.c index 2271940de1..5f5015245e 100644 --- a/servers/slapd/back-bdb/monitor.c +++ b/servers/slapd/back-bdb/monitor.c @@ -266,8 +266,8 @@ bdb_monitor_initialize( void ) argv[ 2 ] = s_oid[ i ].oid; if ( parse_oidm( &c, 0, NULL ) != 0 ) { - Debug( LDAP_DEBUG_ANY, - "bdb_monitor_initialize: unable to add " + Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_monitor_initialize) + ": unable to add " "objectIdentifier \"%s=%s\"\n", s_oid[ i ].name, s_oid[ i ].oid, 0 ); return 1; @@ -277,8 +277,8 @@ bdb_monitor_initialize( void ) for ( i = 0; s_at[ i ].desc != NULL; i++ ) { code = register_at( s_at[ i ].desc, s_at[ i ].ad, 1 ); if ( code != LDAP_SUCCESS ) { - Debug( LDAP_DEBUG_ANY, - "bdb_monitor_initialize: register_at failed\n", + Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_monitor_initialize) + ": register_at failed\n", 0, 0, 0 ); } (*s_at[ i ].ad)->ad_type->sat_flags |= SLAP_AT_HIDE; @@ -287,8 +287,8 @@ bdb_monitor_initialize( void ) for ( i = 0; s_oc[ i ].desc != NULL; i++ ) { code = register_oc( s_oc[ i ].desc, s_oc[ i ].oc, 1 ); if ( code != LDAP_SUCCESS ) { - Debug( LDAP_DEBUG_ANY, - "bdb_monitor_initialize: register_oc failed\n", + Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_monitor_initialize) + ": register_oc failed\n", 0, 0, 0 ); } (*s_oc[ i ].oc)->soc_flags |= SLAP_OC_HIDE; @@ -356,8 +356,8 @@ bdb_monitor_db_open( BackendDB *be ) static int warning = 0; if ( warning++ == 0 ) { - Debug( LDAP_DEBUG_ANY, "bdb_monitor_open: " - "monitoring disabled; " + Debug( LDAP_DEBUG_ANY, LDAP_XSTRING(bdb_monitor_db_open) + ": monitoring disabled; " "configure monitor database to enable\n", 0, 0, 0 ); } -- 2.39.5