public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] Fixed clobbered output of the "help usb" command
@ 2010-08-09 12:01 Sergei Poselenov
  2010-08-09 17:26 ` Remy Bohmer
  0 siblings, 1 reply; 3+ messages in thread
From: Sergei Poselenov @ 2010-08-09 12:01 UTC (permalink / raw)
  To: u-boot

Hello all,


I've noticed that the "usb help" doesn't format the output correctly:

=> help usb
usb - USB sub-system

Usage:
usb reset - reset (rescan) USB controller
usb stop [f]  - stop USB [f]=force stop
usb tree  - show USB device tree
usb info [dev] - show available USB devices
usb storage  - show details of USB storage devices
usb dev [dev] - show or set current USB storage device
usb part [dev] - print partition table of one or all USB storage devices
usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'
    to memory address `addr'usb write addr blk# cnt - write `cnt'
blocks starting at block `blk#' from memory address `addr'
=> 

With fix below applied, the output is correct:

=> help usb
usb - USB sub-system

Usage:
usb reset - reset (rescan) USB controller
usb stop [f]  - stop USB [f]=force stop
usb tree  - show USB device tree
usb info [dev] - show available USB devices
usb storage  - show details of USB storage devices
usb dev [dev] - show or set current USB storage device
usb part [dev] - print partition table of one or all USB storage devices
usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'
    to memory address `addr'
usb write addr blk# cnt - write `cnt' blocks starting at block `blk#'
    from memory address `addr'
=> 


Please apply.

Regards,
Sergei

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 1/1] Fixed clobbered output of the "help usb" command
  2010-08-09 12:01 [U-Boot] [PATCH 1/1] Fixed clobbered output of the "help usb" command Sergei Poselenov
@ 2010-08-09 17:26 ` Remy Bohmer
  2010-08-10  6:26   ` Sergei Poselenov
  0 siblings, 1 reply; 3+ messages in thread
From: Remy Bohmer @ 2010-08-09 17:26 UTC (permalink / raw)
  To: u-boot

Hi,

2010/8/9 Sergei Poselenov <sposelenov@emcraft.com>:
> Hello all,
>
>
> I've noticed that the "usb help" doesn't format the output correctly:
>
> => help usb
> usb - USB sub-system
>
> Usage:
> usb reset - reset (rescan) USB controller
> usb stop [f] ?- stop USB [f]=force stop
> usb tree ?- show USB device tree
> usb info [dev] - show available USB devices
> usb storage ?- show details of USB storage devices
> usb dev [dev] - show or set current USB storage device
> usb part [dev] - print partition table of one or all USB storage devices
> usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'
> ? ?to memory address `addr'usb write addr blk# cnt - write `cnt'
> blocks starting at block `blk#' from memory address `addr'
> =>
>
> With fix below applied, the output is correct:
>
> => help usb
> usb - USB sub-system
>
> Usage:
> usb reset - reset (rescan) USB controller
> usb stop [f] ?- stop USB [f]=force stop
> usb tree ?- show USB device tree
> usb info [dev] - show available USB devices
> usb storage ?- show details of USB storage devices
> usb dev [dev] - show or set current USB storage device
> usb part [dev] - print partition table of one or all USB storage devices
> usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'
> ? ?to memory address `addr'
> usb write addr blk# cnt - write `cnt' blocks starting at block `blk#'
> ? ?from memory address `addr'
> =>
>
>
> Please apply.
>
> Regards,
> Sergei
>
>
> From 473e86d3f5fe82fa7b27e5e73929e0e1f11987f4 Mon Sep 17 00:00:00 2001
> From: Sergei Poselenov <psl@pollux.denx.de>
> Date: Mon, 9 Aug 2010 13:45:00 +0200
> Subject: [PATCH] common/cmd_usb.c: fixed clobbered output in "help usb".
> ?Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
>
> ---
> ?common/cmd_usb.c | ? ?2 +-
> ?1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/common/cmd_usb.c b/common/cmd_usb.c
> index dc63f24..226ea0d 100644
> --- a/common/cmd_usb.c
> +++ b/common/cmd_usb.c
> @@ -712,7 +712,7 @@ U_BOOT_CMD(
> ? ? ? ?"usb part [dev] - print partition table of one or all USB
> storage" " devices\n"

Patch is corrupt. Lines are wrapped.

> ? ? ? ?"usb read addr blk# cnt - read `cnt' blocks starting at block
> `blk#'\n"
> - ? ? ? " ? ?to memory address `addr'"
> + ? ? ? " ? ?to memory address `addr'\n"
> ? ? ? ?"usb write addr blk# cnt - write `cnt' blocks starting at
> block `blk#'\n" " ? ?from memory address `addr'"
> ?);

Applied to u-boot-usb after some small fixes to this patch (header
text cleaned up and word wrapping)
Thanks.

Remy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 1/1] Fixed clobbered output of the "help usb" command
  2010-08-09 17:26 ` Remy Bohmer
@ 2010-08-10  6:26   ` Sergei Poselenov
  0 siblings, 0 replies; 3+ messages in thread
From: Sergei Poselenov @ 2010-08-10  6:26 UTC (permalink / raw)
  To: u-boot

Hi Remy,

On Mon, 9 Aug 2010 19:26:46 +0200
Remy Bohmer <linux@bohmer.net> wrote:

> > --- a/common/cmd_usb.c
> > +++ b/common/cmd_usb.c
> > @@ -712,7 +712,7 @@ U_BOOT_CMD(
> > ? ? ? ?"usb part [dev] - print partition table of one or all USB
> > storage" " devices\n"
> 
> Patch is corrupt. Lines are wrapped.
> 

Sorry for that. Now I adjusted wrapping settings on my Claws Mail
client.

> > ? ? ? ?"usb read addr blk# cnt - read `cnt' blocks starting at block
> > `blk#'\n"
> > - ? ? ? " ? ?to memory address `addr'"
> > + ? ? ? " ? ?to memory address `addr'\n"
> > ? ? ? ?"usb write addr blk# cnt - write `cnt' blocks starting at
> > block `blk#'\n" " ? ?from memory address `addr'"
> > ?);
> 
> Applied to u-boot-usb after some small fixes to this patch (header
> text cleaned up and word wrapping)
> Thanks.
> 

Thank you.

Regards,
Sergei

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-10  6:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09 12:01 [U-Boot] [PATCH 1/1] Fixed clobbered output of the "help usb" command Sergei Poselenov
2010-08-09 17:26 ` Remy Bohmer
2010-08-10  6:26   ` Sergei Poselenov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox