From: Tor Krill Date: Thu, 29 May 2008 09:10:30 +0000 (+0200) Subject: Fix incorrect switch for IF_TYPE in part.c X-Git-Tag: v1.3.4-rc1~114^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8ec6e332ea;p=u-boot 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 --- 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;