Patchwork [U-Boot] common: cmd_sata: Fix usage text for 'sata init'

login
register
mail settings
Submitter Fabio Estevam
Date Feb. 21, 2013, 12:35 a.m.
Message ID <1361406935-9392-1-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/222163/
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Comments

Fabio Estevam - Feb. 21, 2013, 12:35 a.m.
From: Fabio Estevam <fabio.estevam@freescale.com>

Currently sata usage text prints a double 'sata' for the init command.

MX53LOCO U-Boot > sata    
sata - SATA sub system

Usage:
sata sata init - init SATA sub system
sata info - show available SATA devices
sata device [dev] - show or set current device
sata part [dev] - print partition table
sata read addr blk# cnt
sata write addr blk# cnt

Remove the extra 'sata' from the 'sata init' line.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 common/cmd_sata.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Stefano Babic - Feb. 23, 2013, 9:53 a.m.
On 21/02/2013 01:35, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> Currently sata usage text prints a double 'sata' for the init command.
> 
> MX53LOCO U-Boot > sata    
> sata - SATA sub system
> 

Hi Fabio,

> Usage:
> sata sata init - init SATA sub system
> sata info - show available SATA devices
> sata device [dev] - show or set current device
> sata part [dev] - print partition table
> sata read addr blk# cnt
> sata write addr blk# cnt
> 
> Remove the extra 'sata' from the 'sata init' line.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  common/cmd_sata.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/cmd_sata.c b/common/cmd_sata.c
> index b401bd1..8d57285 100644
> --- a/common/cmd_sata.c
> +++ b/common/cmd_sata.c
> @@ -196,7 +196,7 @@ static int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>  U_BOOT_CMD(
>  	sata, 5, 1, do_sata,
>  	"SATA sub system",
> -	"sata init - init SATA sub system\n"
> +	"init - init SATA sub system\n"
>  	"sata info - show available SATA devices\n"
>  	"sata device [dev] - show or set current device\n"
>  	"sata part [dev] - print partition table\n"
> 

I think we do not need to talk a lot about it. Applied to u-boot-imx,
thanks !

Best regards,
Stefano Babic

Patch

diff --git a/common/cmd_sata.c b/common/cmd_sata.c
index b401bd1..8d57285 100644
--- a/common/cmd_sata.c
+++ b/common/cmd_sata.c
@@ -196,7 +196,7 @@  static int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 U_BOOT_CMD(
 	sata, 5, 1, do_sata,
 	"SATA sub system",
-	"sata init - init SATA sub system\n"
+	"init - init SATA sub system\n"
 	"sata info - show available SATA devices\n"
 	"sata device [dev] - show or set current device\n"
 	"sata part [dev] - print partition table\n"