]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Modernize a DEBUG
authorVolker Lendecke <vl@samba.org>
Thu, 3 Oct 2024 09:04:15 +0000 (11:04 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 12:09:35 +0000 (12:09 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/tdb_validate.c

index 78bd824c09d0ffb97bf89b7f1d639453d2b813ab..5b821a9731b3c44f482cd4274291195461b3c546 100644 (file)
@@ -83,12 +83,17 @@ static int tdb_validate_child(struct tdb_context *tdb,
        ret = 0; /* Cache is good. */
 
 out:
-       DEBUG(10,   ("tdb_validate_child: summary of validation status:\n"));
-       DEBUGADD(10,(" * tdb error: %s\n", v_status.tdb_error ? "yes" : "no"));
-       DEBUGADD(10,(" * bad freelist: %s\n",v_status.bad_freelist?"yes":"no"));
-       DEBUGADD(10,(" * bad entry: %s\n", v_status.bad_entry ? "yes" : "no"));
-       DEBUGADD(10,(" * unknown key: %s\n", v_status.unknown_key?"yes":"no"));
-       DEBUGADD(10,(" => overall success: %s\n", v_status.success?"yes":"no"));
+       DBG_DEBUG("summary of validation status:\n"
+                 " * tdb error: %s\n"
+                 " * bad freelist: %s\n"
+                 " * bad entry: %s\n"
+                 " * unknown key: %s\n"
+                 " => overall success: %s\n",
+                 v_status.tdb_error ? "yes" : "no",
+                 v_status.bad_freelist ? "yes" : "no",
+                 v_status.bad_entry ? "yes" : "no",
+                 v_status.unknown_key ? "yes" : "no",
+                 v_status.success ? "yes" : "no");
 
        return ret;
 }