Skip to content

Commit

Permalink
libs/libc/gdbstub/lib_gdbstub.c: fix warning
Browse files Browse the repository at this point in the history
libs/libc/gdbstub/lib_gdbstub.c: fix warning

Signed-off-by: p-szafonimateusz <[email protected]>
  • Loading branch information
szafonimateusz-mi authored and xiaoxiang781216 committed Jan 3, 2025
1 parent 6f9d0c9 commit 9f93621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/libc/gdbstub/lib_gdbstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9f93621

Please sign in to comment.