Commit 6e24a1eb1490aa043770bcf0061ac1fad0864fd9

Authored by Remy Bohmer
Committed by Wolfgang Denk
1 parent 5fdc215f0b

Add missing device types to dev_print() in part.c

Signed-off-by: Remy Bohmer <linux@bohmer.net>

Showing 1 changed file with 9 additions and 1 deletions Side-by-side Diff

... ... @@ -117,6 +117,7 @@
117 117 dev_desc->product,
118 118 dev_desc->revision);
119 119 break;
  120 + case IF_TYPE_ATAPI:
120 121 case IF_TYPE_IDE:
121 122 case IF_TYPE_SATA:
122 123 printf ("Model: %s Firm: %s Ser#: %s\n",
123 124  
124 125  
125 126  
... ... @@ -124,15 +125,22 @@
124 125 dev_desc->revision,
125 126 dev_desc->product);
126 127 break;
  128 + case IF_TYPE_SD:
  129 + case IF_TYPE_MMC:
127 130 case IF_TYPE_USB:
128 131 printf ("Vendor: %s Rev: %s Prod: %s\n",
129 132 dev_desc->vendor,
130 133 dev_desc->revision,
131 134 dev_desc->product);
132 135 break;
  136 + case IF_TYPE_DOC:
  137 + puts("device type DOC\n");
  138 + return;
133 139 case IF_TYPE_UNKNOWN:
  140 + puts("device type unknown\n");
  141 + return;
134 142 default:
135   - puts ("not available\n");
  143 + printf("Unhandled device type: %i\n", dev_desc->if_type);
136 144 return;
137 145 }
138 146 puts (" Type: ");