Set empty usage field for commands that do not need parameters

The missing field causes runtime debug message
	BUG: command '%s' does not have the '.usage' field filled out

While there, fix some minor typo in the help messages:
	s/deasert/deassert/
	s/Deasert/Deassert/

Change-Id: If3dd18265cda103ca0d05609f67f4ca58e7cbb27
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5024
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
bscan_optimization
Antonio Borneo 2019-01-04 18:16:00 +01:00 committed by Tomas Vanek
parent b6ea92247d
commit b61e454869
21 changed files with 34 additions and 6 deletions

View File

@ -1327,6 +1327,7 @@ static const struct command_registration mflash_exec_command_handlers[] = {
.handler = mg_probe_cmd, .handler = mg_probe_cmd,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Detect bank configuration information", .help = "Detect bank configuration information",
.usage = "",
}, },
{ {
.name = "write", .name = "write",

View File

@ -411,6 +411,7 @@ static const struct command_registration nand_exec_command_handlers[] = {
.handler = handle_nand_list_command, .handler = handle_nand_list_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "list configured NAND flash devices", .help = "list configured NAND flash devices",
.usage = "",
}, },
{ {
.name = "info", .name = "info",

View File

@ -3731,6 +3731,7 @@ static const struct command_registration at91sam3_exec_command_handlers[] = {
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Print information about the current at91sam3 chip" .help = "Print information about the current at91sam3 chip"
"and its flash configuration.", "and its flash configuration.",
.usage = "",
}, },
{ {
.name = "slowclk", .name = "slowclk",

View File

@ -3212,6 +3212,7 @@ static const struct command_registration at91sam4_exec_command_handlers[] = {
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Print information about the current at91sam4 chip" .help = "Print information about the current at91sam4 chip"
"and its flash configuration.", "and its flash configuration.",
.usage = "",
}, },
{ {
.name = "slowclk", .name = "slowclk",

View File

@ -668,7 +668,8 @@ static const struct command_registration at91sam4l_exec_command_handlers[] = {
.name = "smap_reset_deassert", .name = "smap_reset_deassert",
.handler = sam4l_handle_reset_deassert, .handler = sam4l_handle_reset_deassert,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "deasert internal reset held by SMAP" .help = "deassert internal reset held by SMAP",
.usage = "",
}, },
COMMAND_REGISTRATION_DONE COMMAND_REGISTRATION_DONE
}; };

View File

@ -1217,7 +1217,8 @@ static const struct command_registration at91samd_exec_command_handlers[] = {
.name = "dsu_reset_deassert", .name = "dsu_reset_deassert",
.handler = samd_handle_reset_deassert, .handler = samd_handle_reset_deassert,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Deasert internal reset held by DSU." .help = "Deassert internal reset held by DSU.",
.usage = "",
}, },
{ {
.name = "info", .name = "info",
@ -1225,6 +1226,7 @@ static const struct command_registration at91samd_exec_command_handlers[] = {
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Print information about the current at91samd chip " .help = "Print information about the current at91samd chip "
"and its flash configuration.", "and its flash configuration.",
.usage = "",
}, },
{ {
.name = "chip-erase", .name = "chip-erase",
@ -1232,6 +1234,7 @@ static const struct command_registration at91samd_exec_command_handlers[] = {
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Erase the entire Flash by using the Chip-" .help = "Erase the entire Flash by using the Chip-"
"Erase feature in the Device Service Unit (DSU).", "Erase feature in the Device Service Unit (DSU).",
.usage = "",
}, },
{ {
.name = "set-security", .name = "set-security",

View File

@ -893,12 +893,14 @@ COMMAND_HANDLER(samd_handle_reset_deassert)
static const struct command_registration same5_exec_command_handlers[] = { static const struct command_registration same5_exec_command_handlers[] = {
{ {
.name = "dsu_reset_deassert", .name = "dsu_reset_deassert",
.usage = "",
.handler = samd_handle_reset_deassert, .handler = samd_handle_reset_deassert,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Deasert internal reset held by DSU." .help = "Deasert internal reset held by DSU."
}, },
{ {
.name = "chip-erase", .name = "chip-erase",
.usage = "",
.handler = same5_handle_chip_erase_command, .handler = same5_handle_chip_erase_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Erase the entire Flash by using the Chip-" .help = "Erase the entire Flash by using the Chip-"

View File

@ -3127,6 +3127,7 @@ static const struct command_registration kinetis_exec_command_handlers[] = {
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.help = "Driver creates additional banks if device with two/four flash blocks is probed", .help = "Driver creates additional banks if device with two/four flash blocks is probed",
.handler = kinetis_create_banks_handler, .handler = kinetis_create_banks_handler,
.usage = "",
}, },
COMMAND_REGISTRATION_DONE COMMAND_REGISTRATION_DONE
}; };

View File

@ -1118,6 +1118,7 @@ static const struct command_registration nrf5_exec_command_handlers[] = {
.handler = nrf5_handle_mass_erase_command, .handler = nrf5_handle_mass_erase_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Erase all flash contents of the chip.", .help = "Erase all flash contents of the chip.",
.usage = "",
}, },
COMMAND_REGISTRATION_DONE COMMAND_REGISTRATION_DONE
}; };

View File

@ -1856,6 +1856,7 @@ static const struct command_registration numicro_exec_command_handlers[] = {
.handler = numicro_handle_chip_erase_command, .handler = numicro_handle_chip_erase_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "chip erase through ISP.", .help = "chip erase through ISP.",
.usage = "",
}, },
COMMAND_REGISTRATION_DONE COMMAND_REGISTRATION_DONE
}; };

View File

@ -1239,12 +1239,14 @@ static const struct command_registration flash_config_command_handlers[] = {
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.handler = handle_flash_init_command, .handler = handle_flash_init_command,
.help = "Initialize flash devices.", .help = "Initialize flash devices.",
.usage = "",
}, },
{ {
.name = "banks", .name = "banks",
.mode = COMMAND_ANY, .mode = COMMAND_ANY,
.handler = handle_flash_banks_command, .handler = handle_flash_banks_command,
.help = "Display table with information about flash banks.", .help = "Display table with information about flash banks.",
.usage = "",
}, },
{ {
.name = "list", .name = "list",

View File

@ -472,6 +472,7 @@ static const struct command_registration ioutil_command_handlers[] = {
.handler = handle_meminfo_command, .handler = handle_meminfo_command,
.mode = COMMAND_ANY, .mode = COMMAND_ANY,
.help = "display free heap space", .help = "display free heap space",
.usage = "",
}, },
#endif #endif
{ {

View File

@ -555,6 +555,7 @@ static const struct command_registration interface_command_handlers[] = {
.handler = handle_interface_list_command, .handler = handle_interface_list_command,
.mode = COMMAND_ANY, .mode = COMMAND_ANY,
.help = "List all built-in debug adapter interfaces (drivers)", .help = "List all built-in debug adapter interfaces (drivers)",
.usage = "",
}, },
{ {
.name = "reset_config", .name = "reset_config",

View File

@ -490,6 +490,7 @@ static const struct command_registration armjtagew_command_handlers[] = {
.handler = &armjtagew_handle_armjtagew_info_command, .handler = &armjtagew_handle_armjtagew_info_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "query armjtagew info", .help = "query armjtagew info",
.usage = "",
}, },
COMMAND_REGISTRATION_DONE COMMAND_REGISTRATION_DONE
}; };

View File

@ -491,6 +491,7 @@ static const struct command_registration buspirate_command_handlers[] = {
.handler = &buspirate_handle_adc_command, .handler = &buspirate_handle_adc_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "reads voltages on adc pins", .help = "reads voltages on adc pins",
.usage = "",
}, },
{ {
.name = "buspirate_vreg", .name = "buspirate_vreg",

View File

@ -1772,13 +1772,15 @@ static const struct command_registration jlink_config_subcommand_handlers[] = {
.name = "reset", .name = "reset",
.handler = &jlink_handle_config_reset_command, .handler = &jlink_handle_config_reset_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "undo configuration changes" .help = "undo configuration changes",
.usage = "",
}, },
{ {
.name = "write", .name = "write",
.handler = &jlink_handle_config_write_command, .handler = &jlink_handle_config_write_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "write configuration to the device" .help = "write configuration to the device",
.usage = "",
}, },
COMMAND_REGISTRATION_DONE COMMAND_REGISTRATION_DONE
}; };
@ -1820,13 +1822,15 @@ static const struct command_registration jlink_subcommand_handlers[] = {
.name = "freemem", .name = "freemem",
.handler = &jlink_handle_free_memory_command, .handler = &jlink_handle_free_memory_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "show free device memory" .help = "show free device memory",
.usage = "",
}, },
{ {
.name = "hwstatus", .name = "hwstatus",
.handler = &jlink_handle_hwstatus_command, .handler = &jlink_handle_hwstatus_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "show the hardware status" .help = "show the hardware status",
.usage = "",
}, },
{ {
.name = "usb", .name = "usb",

View File

@ -215,6 +215,7 @@ static const struct command_registration opendous_command_handlers[] = {
.handler = &opendous_handle_opendous_info_command, .handler = &opendous_handle_opendous_info_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "show opendous info", .help = "show opendous info",
.usage = "",
}, },
{ {
.name = "opendous_hw_jtag", .name = "opendous_hw_jtag",

View File

@ -170,6 +170,7 @@ static const struct command_registration pld_exec_command_handlers[] = {
.handler = handle_pld_devices_command, .handler = handle_pld_devices_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "list configured pld devices", .help = "list configured pld devices",
.usage = "",
}, },
{ {
.name = "load", .name = "load",

View File

@ -3699,6 +3699,7 @@ static const struct command_registration gdb_command_handlers[] = {
.handler = handle_gdb_save_tdesc_command, .handler = handle_gdb_save_tdesc_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "Save the target description file", .help = "Save the target description file",
.usage = "",
}, },
COMMAND_REGISTRATION_DONE COMMAND_REGISTRATION_DONE
}; };

View File

@ -5890,6 +5890,7 @@ static const struct command_registration target_subcommand_handlers[] = {
.mode = COMMAND_CONFIG, .mode = COMMAND_CONFIG,
.handler = handle_target_init_command, .handler = handle_target_init_command,
.help = "initialize targets", .help = "initialize targets",
.usage = "",
}, },
{ {
.name = "create", .name = "create",

View File

@ -3577,6 +3577,7 @@ static const struct command_registration xscale_exec_command_handlers[] = {
.handler = xscale_handle_cache_info_command, .handler = xscale_handle_cache_info_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.help = "display information about CPU caches", .help = "display information about CPU caches",
.usage = "",
}, },
{ {
.name = "mmu", .name = "mmu",