From af37e94a41d9da3d63d03818be70c1df62441f2a Mon Sep 17 00:00:00 2001 From: Etienne Brateau Date: Fri, 6 Dec 2024 14:44:19 +0100 Subject: ipc_kmsg: fix print of size of mach_msg_header msgh_size is a mach_msg_size_t which represent an unsigned int, so %u must me used there instead of %d Message-ID: <20241206134419.6609-1-etienne.brateau@gmail.com> --- ipc/ipc_kmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c index b23cae7c..fe6582d1 100644 --- a/ipc/ipc_kmsg.c +++ b/ipc/ipc_kmsg.c @@ -2796,7 +2796,7 @@ ipc_msg_print(mach_msg_header_t *msgh) MACH_MSGH_BITS_LOCAL(msgh->msgh_bits), MACH_MSGH_BITS_REMOTE(msgh->msgh_bits)); - db_printf("msgh_id=%d,size=%d,seqno=%d,", + db_printf("msgh_id=%d,size=%u,seqno=%d,", msgh->msgh_id, msgh->msgh_size, msgh->msgh_seqno); -- cgit v1.2.3