From 2a057cdf32857a3e2a612fb523ea036d16ac8da7 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Wed, 29 Nov 2023 07:59:19 +0000 Subject: [PATCH] command: Fixed `cmd_halt_timeout`'s gdb_outf() using %d for an unsigned int --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index 1e44bbd5d1d..edaa08d0085 100644 --- a/src/command.c +++ b/src/command.c @@ -443,7 +443,7 @@ static bool cmd_halt_timeout(target_s *t, int argc, const char **argv) (void)t; if (argc > 1) cortexm_wait_timeout = strtoul(argv[1], NULL, 0); - gdb_outf("Cortex-M timeout to wait for device halts: %d\n", cortexm_wait_timeout); + gdb_outf("Cortex-M timeout to wait for device halts: %u\n", cortexm_wait_timeout); return true; }