mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
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:
parent
6f9d0c97d2
commit
9f93621b90
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue