Commit 47bebe34 authored by Nícolas Carneiro Lebedenco's avatar Nícolas Carneiro Lebedenco Committed by Wolfgang Denk

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: default avatarNicolas Lebedenco <nicolas.lebedenco@tasksistemas.com.br>
parent a4f24345
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment