From: Volker Lendecke Date: Fri, 20 Mar 2020 12:27:43 +0000 (+0100) Subject: lib: Avoid casts in ctdb_packet_dump() X-Git-Tag: ldb-2.2.0~957 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5766956277fa9d16711af55818af15e4648b268c;p=thirdparty%2Fsamba.git lib: Avoid casts in ctdb_packet_dump() Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- 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)); } /*