From: NĂ­colas Carneiro Lebedenco Date: Thu, 4 Sep 2008 18:35:46 +0000 (-0300) Subject: Fix dev_print when called from usb_stor_info (usb storage command) X-Git-Tag: v2008.10-rc1~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=47bebe34ca4e33bab0e822e4ceebbec2590ccbcb;p=u-boot 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 --- diff --git a/disk/part.c b/disk/part.c index 5c4bf6b614..877e9886af 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");