command: Fixed a clang-tidy warning in cmd_halt_timeout

This commit is contained in:
dragonmux 2022-07-26 12:32:19 +01:00 committed by Piotr Esden-Tempski
parent bffd3d3d14
commit e8610d9ca2
1 changed files with 2 additions and 2 deletions

View File

@ -428,8 +428,8 @@ static bool cmd_halt_timeout(target *t, int argc, const char **argv)
{
(void)t;
if (argc > 1)
cortexm_wait_timeout = atol(argv[1]);
gdb_outf("Cortex-M timeout to wait for device haltes: %d\n", cortexm_wait_timeout);
cortexm_wait_timeout = strtoul(argv[1], NULL, 0);
gdb_outf("Cortex-M timeout to wait for device halts: %d\n", cortexm_wait_timeout);
return true;
}