libs/libc/gdbstub/lib_gdbstub.c: fix warning

libs/libc/gdbstub/lib_gdbstub.c: fix warning

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
p-szafonimateusz 2024-12-16 11:35:24 +01:00 committed by Xiang Xiao
parent 6f9d0c97d2
commit 9f93621b90

View file

@ -1376,11 +1376,11 @@ static int gdb_query(FAR struct gdb_state_s *state)
{ {
#ifdef CONFIG_ARCH_HAVE_DEBUG #ifdef CONFIG_ARCH_HAVE_DEBUG
state->pkt_len = sprintf(state->pkt_buf, state->pkt_len = sprintf(state->pkt_buf,
"hwbreak+;PacketSize=%x", "hwbreak+;PacketSize=%zx",
sizeof(state->pkt_buf)); sizeof(state->pkt_buf));
#else #else
state->pkt_len = sprintf(state->pkt_buf, state->pkt_len = sprintf(state->pkt_buf,
"PacketSize=%x", "PacketSize=%zx",
sizeof(state->pkt_buf)); sizeof(state->pkt_buf));
#endif #endif
gdb_send_packet(state); gdb_send_packet(state);