From 2a34cc8eb6a8431ecebad1279d19ce919978a778 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Mon, 9 Jan 2012 16:14:18 +0000 Subject: [PATCH] cmd: add missing usage var Change-Id: I0f05d643b0801b19cc3beb88f0d12d7e4c83ef9c Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/356 Tested-by: jenkins --- src/flash/nor/at91sam3.c | 1 + src/flash/nor/at91sam7.c | 1 + src/flash/nor/avrf.c | 1 + src/flash/nor/em357.c | 1 + src/flash/nor/fm3.c | 1 + src/flash/nor/lpc2000.c | 2 ++ src/flash/nor/lpc2900.c | 1 + src/flash/nor/pic32mx.c | 1 + src/flash/nor/stellaris.c | 1 + src/flash/nor/stm32f1x.c | 1 + src/flash/nor/stm32f2x.c | 1 + src/flash/nor/stm32lx.c | 1 + src/flash/nor/str7x.c | 1 + src/flash/nor/str9x.c | 1 + src/flash/nor/str9xpec.c | 1 + src/flash/nor/tms470.c | 1 + src/jtag/stlink/stlink_transport.c | 8 ++++++++ src/target/target.c | 1 + src/target/target_request.c | 1 + 19 files changed, 27 insertions(+) diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c index 85395cdd..21bfa39c 100644 --- a/src/flash/nor/at91sam3.c +++ b/src/flash/nor/at91sam3.c @@ -3244,6 +3244,7 @@ static const struct command_registration at91sam3_command_handlers[] = { .name = "at91sam3", .mode = COMMAND_ANY, .help = "at91sam3 flash command group", + .usage = "", .chain = at91sam3_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/at91sam7.c b/src/flash/nor/at91sam7.c index 2b822b7d..c2506be3 100644 --- a/src/flash/nor/at91sam7.c +++ b/src/flash/nor/at91sam7.c @@ -1287,6 +1287,7 @@ static const struct command_registration at91sam7_command_handlers[] = { .name = "at91sam7", .mode = COMMAND_ANY, .help = "at91sam7 flash command group", + .usage = "", .chain = at91sam7_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/avrf.c b/src/flash/nor/avrf.c index 1ade4526..462aee2c 100644 --- a/src/flash/nor/avrf.c +++ b/src/flash/nor/avrf.c @@ -492,6 +492,7 @@ static const struct command_registration avrf_command_handlers[] = { .name = "avrf", .mode = COMMAND_ANY, .help = "AVR flash command group", + .usage = "", .chain = avrf_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c index c045d577..2e40601f 100644 --- a/src/flash/nor/em357.c +++ b/src/flash/nor/em357.c @@ -946,6 +946,7 @@ static const struct command_registration em357_command_handlers[] = { .name = "em357", .mode = COMMAND_ANY, .help = "em357 flash command group", + .usage = "", .chain = em357_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/fm3.c b/src/flash/nor/fm3.c index 78e71d29..2119e4f2 100644 --- a/src/flash/nor/fm3.c +++ b/src/flash/nor/fm3.c @@ -886,6 +886,7 @@ static const struct command_registration fm3_command_handlers[] = { .name = "fm3", .mode = COMMAND_ANY, .help = "fm3 Flash command group", + .usage = "", .chain = fm3_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/lpc2000.c b/src/flash/nor/lpc2000.c index b4e17e7e..b9b04fef 100644 --- a/src/flash/nor/lpc2000.c +++ b/src/flash/nor/lpc2000.c @@ -836,6 +836,7 @@ static const struct command_registration lpc2000_exec_command_handlers[] = { .handler = lpc2000_handle_part_id_command, .mode = COMMAND_EXEC, .help = "print part id of lpc2000 flash bank ", + .usage = "", }, COMMAND_REGISTRATION_DONE }; @@ -844,6 +845,7 @@ static const struct command_registration lpc2000_command_handlers[] = { .name = "lpc2000", .mode = COMMAND_ANY, .help = "lpc2000 flash command group", + .usage = "", .chain = lpc2000_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/lpc2900.c b/src/flash/nor/lpc2900.c index 4960e9c6..5a80b323 100644 --- a/src/flash/nor/lpc2900.c +++ b/src/flash/nor/lpc2900.c @@ -1004,6 +1004,7 @@ static const struct command_registration lpc2900_command_handlers[] = { .name = "lpc2900", .mode = COMMAND_ANY, .help = "LPC2900 flash command group", + .usage = "", .chain = lpc2900_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c index 957bfc2a..cc7d99c7 100644 --- a/src/flash/nor/pic32mx.c +++ b/src/flash/nor/pic32mx.c @@ -855,6 +855,7 @@ static const struct command_registration pic32mx_command_handlers[] = { .name = "pic32mx", .mode = COMMAND_ANY, .help = "pic32mx flash command group", + .usage = "", .chain = pic32mx_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c index 13b7071e..10e4d559 100644 --- a/src/flash/nor/stellaris.c +++ b/src/flash/nor/stellaris.c @@ -1451,6 +1451,7 @@ static const struct command_registration stellaris_command_handlers[] = { .name = "stellaris", .mode = COMMAND_EXEC, .help = "Stellaris flash command group", + .usage = "", .chain = stellaris_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index 738c2dac..b4ec93f6 100644 --- a/src/flash/nor/stm32f1x.c +++ b/src/flash/nor/stm32f1x.c @@ -1671,6 +1671,7 @@ static const struct command_registration stm32x_command_handlers[] = { .name = "stm32f1x", .mode = COMMAND_ANY, .help = "stm32f1x flash command group", + .usage = "", .chain = stm32x_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c index b7e10096..6457f203 100644 --- a/src/flash/nor/stm32f2x.c +++ b/src/flash/nor/stm32f2x.c @@ -807,6 +807,7 @@ static const struct command_registration stm32x_command_handlers[] = { .name = "stm32f2x", .mode = COMMAND_ANY, .help = "stm32f2x flash command group", + .usage = "", .chain = stm32x_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c index 2cd16d6f..8ba2b83d 100644 --- a/src/flash/nor/stm32lx.c +++ b/src/flash/nor/stm32lx.c @@ -740,6 +740,7 @@ static const struct command_registration stm32lx_command_handlers[] = .name = "stm32lx", .mode = COMMAND_ANY, .help = "stm32lx flash command group", + .usage = "", .chain = stm32lx_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/str7x.c b/src/flash/nor/str7x.c index 0bfe7c9e..86db9ab4 100644 --- a/src/flash/nor/str7x.c +++ b/src/flash/nor/str7x.c @@ -853,6 +853,7 @@ static const struct command_registration str7x_command_handlers[] = { .name = "str7x", .mode = COMMAND_ANY, .help = "str7x flash command group", + .usage = "", .chain = str7x_exec_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/str9x.c b/src/flash/nor/str9x.c index 674522c7..1f2c9581 100644 --- a/src/flash/nor/str9x.c +++ b/src/flash/nor/str9x.c @@ -735,6 +735,7 @@ static const struct command_registration str9x_command_handlers[] = { .name = "str9x", .mode = COMMAND_ANY, .help = "str9x flash command group", + .usage = "", .chain = str9x_config_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/str9xpec.c b/src/flash/nor/str9xpec.c index 0e095a30..fc2ed359 100644 --- a/src/flash/nor/str9xpec.c +++ b/src/flash/nor/str9xpec.c @@ -1279,6 +1279,7 @@ static const struct command_registration str9xpec_command_handlers[] = { .name = "str9xpec", .mode = COMMAND_ANY, .help = "str9xpec flash command group", + .usage = "", .chain = str9xpec_config_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/flash/nor/tms470.c b/src/flash/nor/tms470.c index b28aee43..393ca76e 100644 --- a/src/flash/nor/tms470.c +++ b/src/flash/nor/tms470.c @@ -863,6 +863,7 @@ static const struct command_registration tms470_command_handlers[] = { .name = "tms470", .mode = COMMAND_ANY, .help = "TI tms470 flash command group", + .usage = "", .chain = tms470_any_command_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/jtag/stlink/stlink_transport.c b/src/jtag/stlink/stlink_transport.c index 6f161954..c073ffed 100644 --- a/src/jtag/stlink/stlink_transport.c +++ b/src/jtag/stlink/stlink_transport.c @@ -59,16 +59,19 @@ stlink_transport_jtag_subcommand_handlers[] = { .name = "init", .mode = COMMAND_ANY, .handler = stlink_transport_jtag_command, + .usage = "" }, { .name = "arp_init", .mode = COMMAND_ANY, .handler = stlink_transport_jtag_command, + .usage = "" }, { .name = "arp_init-reset", .mode = COMMAND_ANY, .handler = stlink_transport_jtag_command, + .usage = "" }, { .name = "tapisenabled", @@ -84,11 +87,13 @@ stlink_transport_jtag_subcommand_handlers[] = { .name = "tapdisable", .mode = COMMAND_EXEC, .handler = stlink_transport_jtag_command, + .usage = "", }, { .name = "configure", .mode = COMMAND_EXEC, .handler = stlink_transport_jtag_command, + .usage = "", }, { .name = "cget", @@ -99,6 +104,7 @@ stlink_transport_jtag_subcommand_handlers[] = { .name = "names", .mode = COMMAND_ANY, .handler = stlink_transport_jtag_command, + .usage = "", }, COMMAND_REGISTRATION_DONE @@ -110,11 +116,13 @@ static const struct command_registration stlink_transport_command_handlers[] = { .name = "stlink", .mode = COMMAND_ANY, .help = "perform stlink actions", + .usage = "", .chain = stlink_transport_stlink_subcommand_handlers, }, { .name = "jtag", .mode = COMMAND_ANY, + .usage = "", .chain = stlink_transport_jtag_subcommand_handlers, }, COMMAND_REGISTRATION_DONE diff --git a/src/target/target.c b/src/target/target.c index 692b78f8..c3d65e33 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -5050,6 +5050,7 @@ static int target_create(Jim_GetOptInfo *goi) .name = cp, .mode = COMMAND_ANY, .help = "target command group", + .usage = "", .chain = target_subcommands, }, COMMAND_REGISTRATION_DONE diff --git a/src/target/target_request.c b/src/target/target_request.c index c669ab4a..090de9fe 100644 --- a/src/target/target_request.c +++ b/src/target/target_request.c @@ -326,6 +326,7 @@ static const struct command_registration target_req_command_handlers[] = { .name = "target_request", .mode = COMMAND_ANY, .help = "target request command group", + .usage = "", .chain = target_req_exec_command_handlers, }, COMMAND_REGISTRATION_DONE -- 2.39.5