Patchwork [U-Boot] cmd_usb.c: Make usb help info consistent for "start".

login
register
mail settings
Submitter Robert P. J. Day
Date Jan. 26, 2013, 11:25 a.m.
Message ID <alpine.DEB.2.02.1301260613180.21616@oneiric>
Download mbox | patch
Permalink /patch/215898/
State Not Applicable
Delegated to: Marek Vasut
Headers show

Comments

Robert P. J. Day - Jan. 26, 2013, 11:25 a.m.
Make USB help info for "start" subcommand consistent with other USB
subcommands.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---

  unless there's something different about the "start" subcommand,
this would seem to make sense for consistency.



rday
Robert P. J. Day - Jan. 26, 2013, 12:31 p.m.
On Sat, 26 Jan 2013, Robert P. J. Day wrote:

>
> Make USB help info for "start" subcommand consistent with other USB
> subcommands.

  ACK, never mind, i just remembered that the first character string
of the long help automatically gets the command name prepended.
apologies.

rday

Patch

diff --git a/common/cmd_usb.c b/common/cmd_usb.c
index dacdc2d..f04ee73 100644
--- a/common/cmd_usb.c
+++ b/common/cmd_usb.c
@@ -575,7 +575,7 @@  static int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 U_BOOT_CMD(
 	usb,	5,	1,	do_usb,
 	"USB sub-system",
-	"start - start (scan) USB controller\n"
+	"usb start - start (scan) USB controller\n"
 	"usb reset - reset (rescan) USB controller\n"
 	"usb stop [f] - stop USB [f]=force stop\n"
 	"usb tree - show USB device tree\n"
@@ -601,7 +601,7 @@  U_BOOT_CMD(
 U_BOOT_CMD(
 	usb,	5,	1,	do_usb,
 	"USB sub-system",
-	"start - start (scan) USB controller\n"
+	"usb start - start (scan) USB controller\n"
 	"usb reset - reset (rescan) USB controller\n"
 	"usb tree - show USB device tree\n"
 	"usb info [dev] - show available USB devices"