From 5766956277fa9d16711af55818af15e4648b268c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 20 Mar 2020 13:27:43 +0100 Subject: [PATCH] lib: Avoid casts in ctdb_packet_dump() Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/lib/ctdbd_conn.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 37d54402af4..498f477a3be 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -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)); } /*