[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] ipc_kmsg: fix print of size of mach_msg_header
From: |
Etienne Brateau |
Subject: |
[PATCH] ipc_kmsg: fix print of size of mach_msg_header |
Date: |
Fri, 6 Dec 2024 14:44:19 +0100 |
msgh_size is a mach_msg_size_t which represent an unsigned int, so %u
must me used there instead of %d
---
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);
--
2.47.1
- [PATCH] ipc_kmsg: fix print of size of mach_msg_header,
Etienne Brateau <=