From: Volker Lendecke Date: Thu, 3 Oct 2024 09:04:15 +0000 (+0200) Subject: lib: Modernize a DEBUG X-Git-Tag: tdb-1.4.13~556 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83582d417c5879a3c2e5b4bb274d339c315e2d2b;p=thirdparty%2Fsamba.git lib: Modernize a DEBUG Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/lib/tdb_validate.c b/source3/lib/tdb_validate.c index 78bd824c09d..5b821a9731b 100644 --- a/source3/lib/tdb_validate.c +++ b/source3/lib/tdb_validate.c @@ -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; }