From f34d418ced59854276edb5b83d3cfb2f426737b2 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 15 Sep 2006 00:16:35 +0000 Subject: [PATCH] more good looking error messages --- servers/slapd/back-monitor/init.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index 442d7a53c4..bc5448f178 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -502,10 +502,11 @@ monitor_back_register_entry_parent( /* entry does not exist */ Debug( LDAP_DEBUG_ANY, "monitor_back_register_entry_parent(\"\"): " - "base=\"%s\" scope=%d filter=\"%s\": " + "base=\"%s\" scope=%s filter=\"%s\": " "unable to find entry\n", nbase->bv_val ? nbase->bv_val : "\"\"", - scope, filter->bv_val ); + ldap_pvt_scope2str( scope ), + filter->bv_val ); return -1; } @@ -869,11 +870,12 @@ monitor_back_register_entry_attrs( snprintf( buf, sizeof( buf ), "monitor_back_register_entry_%s(\"\"): " - "base=\"%s\" scope=%d filter=\"%s\": " + "base=\"%s\" scope=%s filter=\"%s\": " "unable to find entry\n", fname, nbase->bv_val ? nbase->bv_val : "\"\"", - scope, filter->bv_val ); + ldap_pvt_scope2str( scope ), + filter->bv_val ); /* entry does not exist */ Debug( LDAP_DEBUG_ANY, "%s\n", buf, 0, 0 ); -- 2.39.5