From 9f93621b90c5ab91c4ea4d45965937636882eeb8 Mon Sep 17 00:00:00 2001 From: p-szafonimateusz Date: Mon, 16 Dec 2024 11:35:24 +0100 Subject: [PATCH] libs/libc/gdbstub/lib_gdbstub.c: fix warning libs/libc/gdbstub/lib_gdbstub.c: fix warning Signed-off-by: p-szafonimateusz --- libs/libc/gdbstub/lib_gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libc/gdbstub/lib_gdbstub.c b/libs/libc/gdbstub/lib_gdbstub.c index ed83a9148eeb7..2da89228e3f15 100644 --- a/libs/libc/gdbstub/lib_gdbstub.c +++ b/libs/libc/gdbstub/lib_gdbstub.c @@ -1376,11 +1376,11 @@ static int gdb_query(FAR struct gdb_state_s *state) { #ifdef CONFIG_ARCH_HAVE_DEBUG state->pkt_len = sprintf(state->pkt_buf, - "hwbreak+;PacketSize=%x", + "hwbreak+;PacketSize=%zx", sizeof(state->pkt_buf)); #else state->pkt_len = sprintf(state->pkt_buf, - "PacketSize=%x", + "PacketSize=%zx", sizeof(state->pkt_buf)); #endif gdb_send_packet(state);