From: Antonio Borneo Date: Wed, 17 Nov 2021 23:27:47 +0000 (+0100) Subject: flash/psoc6: initialize usage field X-Git-Tag: v0.12.0-rc1~404 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=cbfd0b9aad5e7693fffb5c88098712070b0efc71;hp=facbb481b806275208baca30debfd66d54bc4f9b flash/psoc6: initialize usage field The missing initialization triggers a run-time error message: Error: BUG: command 'psoc6 reset_halt' does not have the '.usage' field filled out Change-Id: I975e4ba99bd939aa924a9d62b1ab76b2ab5bf193 Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/6720 Tested-by: jenkins Reviewed-by: Tomas Vanek --- diff --git a/src/flash/nor/psoc6.c b/src/flash/nor/psoc6.c index d3a4b3702e..198dff5c83 100644 --- a/src/flash/nor/psoc6.c +++ b/src/flash/nor/psoc6.c @@ -1015,7 +1015,7 @@ static const struct command_registration psoc6_exec_command_handlers[] = { .name = "reset_halt", .handler = psoc6_handle_reset_halt, .mode = COMMAND_EXEC, - .usage = NULL, + .usage = "", .help = "Tries to simulate broken Vector Catch", }, COMMAND_REGISTRATION_DONE