瀏覽代碼

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>
Nícolas Carneiro Lebedenco 16 年之前
父節點
當前提交
47bebe34ca
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      disk/part.c

+ 6 - 0
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");