]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/util: Move DEBUG() calls in gendb_search_v to common levels and new DBG_*() pattern
authorAndrew Bartlett <abartlet@samba.org>
Mon, 31 Jul 2023 02:02:12 +0000 (14:02 +1200)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Jul 2023 10:56:54 +0000 (10:56 +0000)
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>
lib/util/util_ldb.c

index bf6fe996c4cb50f18b852d0630c6581b48aea2ee..1fd54220fa13ca3e2d8370ca403ba1050e197d90 100644 (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;
        }