From 433a9fd13d46298706a752d86756a02a8d91bdf2 Mon Sep 17 00:00:00 2001 From: Brian Gix Date: Wed, 29 Jun 2022 12:19:43 -0700 Subject: [PATCH] monitor: Fix usage of %z formater for uint64_t %z expect a size_t as argument not uint64_t, so passing an argument of type uint64_t shall use PRIx64 instead. --- monitor/l2cap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/l2cap.h b/monitor/l2cap.h index 00a8ffbbd..e63377857 100644 --- a/monitor/l2cap.h +++ b/monitor/l2cap.h @@ -291,7 +291,7 @@ static inline bool l2cap_frame_print_be64(struct l2cap_frame *frame, return false; } - print_field("%s: 0x%zx", label, u64); + print_field("%s: 0x%" PRIx64, label, u64); return true; } @@ -320,7 +320,7 @@ static inline bool l2cap_frame_print_le64(struct l2cap_frame *frame, return false; } - print_field("%s: 0x%zx", label, u64); + print_field("%s: 0x%" PRIx64, label, u64); return true; } -- 2.47.3