Skip to content
Snippets Groups Projects
Commit 47bebe34 authored by Nícolas Carneiro Lebedenco's avatar Nícolas Carneiro Lebedenco Committed by Wolfgang Denk
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,12 @@ void dev_print (block_dev_desc_t *dev_desc) ...@@ -124,6 +124,12 @@ void dev_print (block_dev_desc_t *dev_desc)
dev_desc->revision, dev_desc->revision,
dev_desc->product); dev_desc->product);
break; 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: case IF_TYPE_UNKNOWN:
default: default:
puts ("not available\n"); puts ("not available\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment