diff options
author | NĂcolas Carneiro Lebedenco <nicolas.lebedenco@tasksistemas.com.br> | 2008-09-04 15:35:46 -0300 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-09 16:04:09 +0200 |
commit | 47bebe34ca4e33bab0e822e4ceebbec2590ccbcb (patch) | |
tree | 4ad3859927cf68be3693d49ceff9f2ebce0299af /disk/part.c | |
parent | a4f243452cc8ce0c2c9b51a2520db4bde5f472de (diff) | |
download | u-boot-imx-47bebe34ca4e33bab0e822e4ceebbec2590ccbcb.zip u-boot-imx-47bebe34ca4e33bab0e822e4ceebbec2590ccbcb.tar.gz u-boot-imx-47bebe34ca4e33bab0e822e4ceebbec2590ccbcb.tar.bz2 |
Fix dev_print when called from usb_stor_info (usb storage command)
Fix output of the usb storage command. It was printing "Device 0: not
available" because IF_TYPE_USB was not included into the switch
statement.
Signed-off-by: Nicolas Lebedenco <nicolas.lebedenco@tasksistemas.com.br>
Diffstat (limited to 'disk/part.c')
-rw-r--r-- | disk/part.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c index 5c4bf6b..877e988 100644 --- a/disk/part.c +++ b/disk/part.c @@ -124,6 +124,12 @@ void dev_print (block_dev_desc_t *dev_desc) dev_desc->revision, dev_desc->product); break; + case IF_TYPE_USB: + printf ("Vendor: %s Rev: %s Prod: %s\n", + dev_desc->vendor, + dev_desc->revision, + dev_desc->product); + break; case IF_TYPE_UNKNOWN: default: puts ("not available\n"); |