summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2008-09-19 13:30:06 +0200
committerWolfgang Denk <wd@denx.de>2008-09-22 23:10:37 +0200
commit6e24a1eb1490aa043770bcf0061ac1fad0864fd9 (patch)
treedd5a4b11bfec02d07f8f33df3da994a1ab469c83
parent5fdc215f0b351b0c36cc3f8a0fa5850f24454bed (diff)
downloadu-boot-imx-6e24a1eb1490aa043770bcf0061ac1fad0864fd9.zip
u-boot-imx-6e24a1eb1490aa043770bcf0061ac1fad0864fd9.tar.gz
u-boot-imx-6e24a1eb1490aa043770bcf0061ac1fad0864fd9.tar.bz2
Add missing device types to dev_print() in part.c
Signed-off-by: Remy Bohmer <linux@bohmer.net>
-rw-r--r--disk/part.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c
index 877e988..80532a7 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -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: ");