From: Volker Lendecke Date: Mon, 18 Dec 2023 20:39:47 +0000 (+0100) Subject: lib: Modernize (and fix) a DBG statement X-Git-Tag: talloc-2.4.2~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e741b596e908035a59fc635eed9cd5f62f2434a;p=thirdparty%2Fsamba.git lib: Modernize (and fix) a DBG statement Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index 789e05a9c44..5e66222072b 100644 --- a/source3/lib/privileges.c +++ b/source3/lib/privileges.c @@ -352,11 +352,12 @@ static bool grant_privilege_bitmap(const struct dom_sid *sid, const uint64_t pri new_mask |= priv_mask; - DEBUG(10,("grant_privilege: %s\n", dom_sid_str_buf(sid, &buf))); - - DEBUGADD( 10, ("original privilege mask: 0x%llx\n", (unsigned long long)new_mask)); - - DEBUGADD( 10, ("new privilege mask: 0x%llx\n", (unsigned long long)new_mask)); + DBG_DEBUG("%s\n" + "original privilege mask: 0x%"PRIx64"\n" + "new privilege mask: 0x%"PRIx64"\n", + dom_sid_str_buf(sid, &buf), + old_mask, + new_mask); return set_privileges( sid, new_mask ); }