diff options
author | Brian Gix <brian.gix@intel.com> | 2022-06-29 12:19:43 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-06-30 13:46:09 -0700 |
commit | 433a9fd13d46298706a752d86756a02a8d91bdf2 (patch) | |
tree | 95801c0e12d144e1982bf0f85769f8a1a59c8af1 /monitor | |
parent | 5351d4d86a08fbdc7f537b4662c5a070dbf1d0b4 (diff) | |
download | bluez-433a9fd13d46298706a752d86756a02a8d91bdf2.tar.gz |
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.
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/l2cap.h | 4 |
1 files 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; } |