Skip to content
Snippets Groups Projects
Commit 6e24a1eb authored by Remy Bohmer's avatar Remy Bohmer Committed by Wolfgang Denk
Browse files

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


Signed-off-by: default avatarRemy Bohmer <linux@bohmer.net>
parent 5fdc215f
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,7 @@ void dev_print (block_dev_desc_t *dev_desc)
dev_desc->product,
dev_desc->revision);
break;
case IF_TYPE_ATAPI:
case IF_TYPE_IDE:
case IF_TYPE_SATA:
printf ("Model: %s Firm: %s Ser#: %s\n",
......@@ -124,15 +125,22 @@ void dev_print (block_dev_desc_t *dev_desc)
dev_desc->revision,
dev_desc->product);
break;
case IF_TYPE_SD:
case IF_TYPE_MMC:
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_DOC:
puts("device type DOC\n");
return;
case IF_TYPE_UNKNOWN:
puts("device type unknown\n");
return;
default:
puts ("not available\n");
printf("Unhandled device type: %i\n", dev_desc->if_type);
return;
}
puts (" Type: ");
......
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