From a89c33db96a1e55319a286dd4c3c05ca64ac6bfd Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sun, 24 May 2009 17:06:54 +0200 Subject: General help message cleanup Many of the help messages were not really helpful; for example, many commands that take no arguments would not print a correct synopsis line, but "No additional help available." which is not exactly wrong, but not helpful either. Commit ``Make "usage" messages more helpful.'' changed this partially. But it also became clear that lots of "Usage" and "Help" messages (fields "usage" and "help" in struct cmd_tbl_s respective) were actually redundant. This patch cleans this up - for example: Before: => help dtt dtt - Digital Thermometer and Thermostat Usage: dtt - Read temperature from digital thermometer and thermostat. After: => help dtt dtt - Read temperature from Digital Thermometer and Thermostat Usage: dtt Signed-off-by: Wolfgang Denk --- board/inka4x0/inkadiag.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'board/inka4x0/inkadiag.c') diff --git a/board/inka4x0/inkadiag.c b/board/inka4x0/inkadiag.c index 12c0a85..3761ef6 100644 --- a/board/inka4x0/inkadiag.c +++ b/board/inka4x0/inkadiag.c @@ -439,14 +439,14 @@ static int do_inkadiag_help(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); cmd_tbl_t cmd_inkadiag_sub[] = { U_BOOT_CMD_MKENT(io, 1, 1, do_inkadiag_io, "read digital input", - " [value] - get or set specified signal\n"), + " [value] - get or set specified signal"), U_BOOT_CMD_MKENT(serial, 4, 1, do_inkadiag_serial, "test serial port", " - test uart num [0..11] in mode\n" - "and baudrate with msg\n"), + "and baudrate with msg"), U_BOOT_CMD_MKENT(buzzer, 2, 1, do_inkadiag_buzzer, "activate buzzer", - " - turn buzzer on for period ms with freq hz\n"), + " - turn buzzer on for period ms with freq hz"), U_BOOT_CMD_MKENT(help, 4, 1, do_inkadiag_help, "get help", - "[command] - get help for command\n"), + "[command] - get help for command"), }; static int do_inkadiag_help(cmd_tbl_t *cmdtp, int flag, @@ -483,7 +483,7 @@ U_BOOT_CMD(inkadiag, 6, 1, do_inkadiag, "inkadiag - inka diagnosis\n", "[inkadiag what ...]\n" " - perform a diagnosis on inka hardware\n" - "'inkadiag' performs hardware tests.\n\n"); + "'inkadiag' performs hardware tests."); /* Relocate the command table function pointers when running in RAM */ int inkadiag_init_r (void) { -- cgit v1.1