projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4f2434
)
Fix dev_print when called from usb_stor_info (usb storage command)
author
NĂcolas Carneiro Lebedenco
<nicolas.lebedenco@tasksistemas.com.br>
Thu, 4 Sep 2008 18:35:46 +0000
(15:35 -0300)
committer
Wolfgang Denk
<wd@denx.de>
Tue, 9 Sep 2008 14:04:09 +0000
(16:04 +0200)
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>
disk/part.c
patch
|
blob
|
history
diff --git
a/disk/part.c
b/disk/part.c
index
5c4bf6b
..
877e988
100644
(file)
--- 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");