summaryrefslogtreecommitdiff
path: root/board/bc3450/cmd_bc3450.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-05-24 17:06:54 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:47:16 +0200
commita89c33db96a1e55319a286dd4c3c05ca64ac6bfd (patch)
tree512938dbd159b7262aad30e4304cfc05c350226c /board/bc3450/cmd_bc3450.c
parent94796d8544d4248028141bad11c6a74b840e9d6e (diff)
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 <wd@denx.de>
Diffstat (limited to 'board/bc3450/cmd_bc3450.c')
-rw-r--r--board/bc3450/cmd_bc3450.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/board/bc3450/cmd_bc3450.c b/board/bc3450/cmd_bc3450.c
index aa46e5812f..271ffb1d1f 100644
--- a/board/bc3450/cmd_bc3450.c
+++ b/board/bc3450/cmd_bc3450.c
@@ -198,7 +198,7 @@ U_BOOT_CMD (dip, 1, 1, cmd_dip,
"\n"
" - prints the state of the dip switch and/or\n"
" external configuration inputs as hex value.\n"
- " - \"Config 1\" is the LSB\n");
+ " - \"Config 1\" is the LSB");
/*
@@ -229,7 +229,7 @@ static int cmd_buz (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
U_BOOT_CMD (buz, 2, 1, cmd_buz,
"turns buzzer on/off",
- "\n" "buz <on/off>\n" " - turns the buzzer on or off\n");
+ "\n" "buz <on/off>\n" " - turns the buzzer on or off");
#endif /* CONFIG_BC3450_BUZZER */
@@ -326,14 +326,14 @@ U_BOOT_CMD (fp, 3, 1, cmd_fp,
"\n"
"fp bl <on/off>\n"
" - turns the CCFL backlight of the display on/off\n"
- "fp <on/off>\n" " - turns the whole display on/off\n"
+ "fp <on/off>\n" " - turns the whole display on/off"
#ifdef CONFIG_BC3450_CRT
+ "\n"
"fp crt <on/off>\n"
- " - enables/disables the crt output (debug only)\n"
+ " - enables/disables the crt output (debug only)"
#endif /* CONFIG_BC3450_CRT */
);
-
/*
* temp - DS1620 thermometer
*/
@@ -524,7 +524,7 @@ static int cmd_temp (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
U_BOOT_CMD (temp, 3, 1, cmd_temp,
"print current temperature",
- "\n" "temp\n" " - print current temperature\n");
+ "\n" "temp\n" " - print current temperature");
#ifdef CONFIG_BC3450_CAN
/*
@@ -818,10 +818,11 @@ int cmd_test (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
U_BOOT_CMD (test, 2, 1, cmd_test, "unit test routines", "\n"
#ifdef CONFIG_BC3450_CAN
- "test can\n"
- " - connect CAN1 (X8) with CAN2 (X9) for this test\n"
+ "test can\n"
+ " - connect CAN1 (X8) with CAN2 (X9) for this test\n"
#endif /* CONFIG_BC3450_CAN */
- "test unit-off\n"
- " - turns off the BC3450 unit\n"
- " WARNING: Unsaved environment variables will be lost!\n");
+ "test unit-off\n"
+ " - turns off the BC3450 unit\n"
+ " WARNING: Unsaved environment variables will be lost!"
+);
#endif