lib: Avoid casts in ctdb_packet_dump()
authorVolker Lendecke <vl@samba.org>
Fri, 20 Mar 2020 12:27:43 +0000 (13:27 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 8 Apr 2020 14:46:39 +0000 (14:46 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/ctdbd_conn.c

index 37d54402af4ec732c191d386f9725c8aee9dca9a..498f477a3be8cfde638e01be866408d4513dd903 100644 (file)
@@ -134,10 +134,14 @@ static void ctdb_packet_dump(struct ctdb_req_header *hdr)
        if (DEBUGLEVEL < 11) {
                return;
        }
-       DEBUGADD(11, ("len=%d, magic=%x, vers=%d, gen=%d, op=%d, reqid=%d\n",
-                     (int)hdr->length, (int)hdr->ctdb_magic,
-                     (int)hdr->ctdb_version, (int)hdr->generation,
-                     (int)hdr->operation, (int)hdr->reqid));
+       DEBUGADD(11, ("len=%"PRIu32", magic=%"PRIu32", vers=%"PRIu32", "
+                     "gen=%"PRIu32", op=%"PRIu32", reqid=%"PRIu32"\n",
+                     hdr->length,
+                     hdr->ctdb_magic,
+                     hdr->ctdb_version,
+                     hdr->generation,
+                     hdr->operation,
+                     hdr->reqid));
 }
 
 /*