lib: Modernize (and fix) a DBG statement
authorVolker Lendecke <vl@samba.org>
Mon, 18 Dec 2023 20:39:47 +0000 (21:39 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 23 Jan 2024 23:28:31 +0000 (23:28 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/privileges.c

index 789e05a9c44e9e34657a1f9a668309ba078b9c05..5e66222072b25e4f3b178ca20184826ce6fb17ce 100644 (file)
@@ -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 );
 }