aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNĂ­colas Carneiro Lebedenco <nicolas.lebedenco@tasksistemas.com.br>2008-09-04 15:35:46 -0300
committerWolfgang Denk <wd@denx.de>2008-09-09 16:04:09 +0200
commit47bebe34ca4e33bab0e822e4ceebbec2590ccbcb (patch)
tree4ad3859927cf68be3693d49ceff9f2ebce0299af
parenta4f243452cc8ce0c2c9b51a2520db4bde5f472de (diff)
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>
-rw-r--r--disk/part.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c
index 5c4bf6b61..877e9886a 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");