Skip to contentSkip to conversation

cmd_led.c: Standardize format of help and usage info.

PATCH In review Robert P. J. Day 2 participants 2 messages Nov 11, 2012 – Dec 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd_led.c: Standardize format of help and usage info.

Current "led" help and usage info has redundancy and extraneous newlines, tweak it to be consistent with other commands.

---

checked custodians page, didn't notice anyone in charge of LEDs.

common/cmd_led.c +3 -3
index d83b3ba..7f5ab43 100644
@@ -140,7 +140,7 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 U_BOOT_CMD(
 	led, 3, 1, do_led,
-	"led\t- ["
+	"["
 #ifdef CONFIG_BOARD_SPECIFIC_LED
 #ifdef STATUS_LED_BIT
 	"0|"
@@ -167,6 +167,6 @@ U_BOOT_CMD(
 #ifdef STATUS_LED_BLUE
 	"blue|"
 #endif
-	"all] [on|off|toggle]\n",
-	"led [led_name] [on|off|toggle] sets or clears led(s)\n"
+	"all] [on|off|toggle]",
+	"[led_name] [on|off|toggle] sets or clears led(s)"
 );
Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 4 lines · Robert P. J. Day

Current "led" help and usage info has redundancy and extraneous newlines, tweak it to be consistent with other commands.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121207/2040fba0/attachment.pgp>