summaryrefslogtreecommitdiffstats
path: root/disk/part.c
diff options
context:
space:
mode:
authorTor Krill <tor@excito.com>2008-05-29 11:10:30 +0200
committerWolfgang Denk <wd@denx.de>2008-06-03 21:46:39 +0200
commit8ec6e332eace0ee78c71ee5f645d12b06813b86f (patch)
tree2be66eed141f91b31d923435c9221fa8f120235e /disk/part.c
parentb64b8a0bd310935b70af69ac970952f2b364ae56 (diff)
downloadtalos-obmc-uboot-8ec6e332eace0ee78c71ee5f645d12b06813b86f.tar.gz
talos-obmc-uboot-8ec6e332eace0ee78c71ee5f645d12b06813b86f.zip
Fix incorrect switch for IF_TYPE in part.c
Use correct field in block_dev_desc_t when writing interface type in dev_print. Error introduced in 574b3195. Also added fix from Martin Krause Signed-off-by: Tor Krill <tor@excito.com>
Diffstat (limited to 'disk/part.c')
-rw-r--r--disk/part.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disk/part.c b/disk/part.c
index 316e254739..5c4bf6b614 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -109,7 +109,7 @@ void dev_print (block_dev_desc_t *dev_desc)
lbaint_t lba512;
#endif
- switch (dev_desc->type) {
+ switch (dev_desc->if_type) {
case IF_TYPE_SCSI:
printf ("(%d:%d) Vendor: %s Prod.: %s Rev: %s\n",
dev_desc->target,dev_desc->lun,
@@ -124,7 +124,7 @@ void dev_print (block_dev_desc_t *dev_desc)
dev_desc->revision,
dev_desc->product);
break;
- case DEV_TYPE_UNKNOWN:
+ case IF_TYPE_UNKNOWN:
default:
puts ("not available\n");
return;
OpenPOWER on IntegriCloud