1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

lib/util: Move DEBUG() calls in gendb_search_v to common levels and new DBG_*() pattern

This moves success logs 6 -> 10, failure logs 4 -> 5.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andrew Bartlett 2023-07-31 14:02:12 +12:00 committed by Stefan Metzmacher
parent c58a714232
commit 5cc861603a

View File

@ -56,9 +56,9 @@ int gendb_search_v(struct ldb_context *ldb,
expr?"%s":NULL, expr);
if (ret == LDB_SUCCESS) {
DEBUG(6,("gendb_search_v: %s %s -> %d\n",
DBG_DEBUG("%s %s -> %d\n",
basedn?ldb_dn_get_linearized(basedn):"NULL",
expr?expr:"NULL", res->count));
expr?expr:"NULL", res->count);
ret = res->count;
if (msgs != NULL) {
@ -69,8 +69,8 @@ int gendb_search_v(struct ldb_context *ldb,
ret = 0;
if (msgs != NULL) *msgs = NULL;
} else {
DEBUG(4,("gendb_search_v: search failed: %s\n",
ldb_errstring(ldb)));
DBG_INFO("search failed: %s\n",
ldb_errstring(ldb));
ret = -1;
if (msgs != NULL) *msgs = NULL;
}