All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cmd: usb_mass_storage: show device interface name
       [not found] <CGME20201217104716eucas1p2953198789d4975e27ad7dd1b2d0d2cc8@eucas1p2.samsung.com>
@ 2020-12-17 10:47 ` Marek Szyprowski
  2020-12-17 17:01   ` Lukasz Majewski
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Szyprowski @ 2020-12-17 10:47 UTC (permalink / raw)
  To: u-boot

Show the interface name (i.e. 'mmc') in the information string to ease
user checking which device is exported via USB Mass Storage protocol.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 cmd/usb_mass_storage.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c
index cf2f55994e..14fa7233c7 100644
--- a/cmd/usb_mass_storage.c
+++ b/cmd/usb_mass_storage.c
@@ -115,8 +115,8 @@ static int ums_init(const char *devtype, const char *devnums_part_str)
 		ums[ums_count].name = name;
 		ums[ums_count].block_dev = *block_dev;
 
-		printf("UMS: LUN %d, dev %d, hwpart %d, sector %#x, count %#x\n",
-		       ums_count, ums[ums_count].block_dev.devnum,
+		printf("UMS: LUN %d, dev %s %d, hwpart %d, sector %#x, count %#x\n",
+		       ums_count, devtype, ums[ums_count].block_dev.devnum,
 		       ums[ums_count].block_dev.hwpart,
 		       ums[ums_count].start_sector,
 		       ums[ums_count].num_sectors);
-- 
2.17.1

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

* [PATCH] cmd: usb_mass_storage: show device interface name
  2020-12-17 10:47 ` [PATCH] cmd: usb_mass_storage: show device interface name Marek Szyprowski
@ 2020-12-17 17:01   ` Lukasz Majewski
  0 siblings, 0 replies; 2+ messages in thread
From: Lukasz Majewski @ 2020-12-17 17:01 UTC (permalink / raw)
  To: u-boot

On Thu, 17 Dec 2020 11:47:11 +0100
Marek Szyprowski <m.szyprowski@samsung.com> wrote:

> Show the interface name (i.e. 'mmc') in the information string to ease
> user checking which device is exported via USB Mass Storage protocol.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
>  cmd/usb_mass_storage.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c
> index cf2f55994e..14fa7233c7 100644
> --- a/cmd/usb_mass_storage.c
> +++ b/cmd/usb_mass_storage.c
> @@ -115,8 +115,8 @@ static int ums_init(const char *devtype, const
> char *devnums_part_str) ums[ums_count].name = name;
>  		ums[ums_count].block_dev = *block_dev;
>  
> -		printf("UMS: LUN %d, dev %d, hwpart %d, sector %#x,
> count %#x\n",
> -		       ums_count, ums[ums_count].block_dev.devnum,
> +		printf("UMS: LUN %d, dev %s %d, hwpart %d, sector
> %#x, count %#x\n",
> +		       ums_count, devtype,
> ums[ums_count].block_dev.devnum, ums[ums_count].block_dev.hwpart,
>  		       ums[ums_count].start_sector,
>  		       ums[ums_count].num_sectors);

Reviewed-by: Lukasz Majewski <lukma@denx.de>


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201217/35ed8cf1/attachment.sig>

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

end of thread, other threads:[~2020-12-17 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20201217104716eucas1p2953198789d4975e27ad7dd1b2d0d2cc8@eucas1p2.samsung.com>
2020-12-17 10:47 ` [PATCH] cmd: usb_mass_storage: show device interface name Marek Szyprowski
2020-12-17 17:01   ` Lukasz Majewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.