Skip to content
Snippets Groups Projects
Commit 8ec6e332 authored by Tor Krill's avatar Tor Krill Committed by Wolfgang Denk
Browse files

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: default avatarTor Krill <tor@excito.com>
parent b64b8a0b
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ void dev_print (block_dev_desc_t *dev_desc) ...@@ -109,7 +109,7 @@ void dev_print (block_dev_desc_t *dev_desc)
lbaint_t lba512; lbaint_t lba512;
#endif #endif
switch (dev_desc->type) { switch (dev_desc->if_type) {
case IF_TYPE_SCSI: case IF_TYPE_SCSI:
printf ("(%d:%d) Vendor: %s Prod.: %s Rev: %s\n", printf ("(%d:%d) Vendor: %s Prod.: %s Rev: %s\n",
dev_desc->target,dev_desc->lun, dev_desc->target,dev_desc->lun,
...@@ -124,7 +124,7 @@ void dev_print (block_dev_desc_t *dev_desc) ...@@ -124,7 +124,7 @@ void dev_print (block_dev_desc_t *dev_desc)
dev_desc->revision, dev_desc->revision,
dev_desc->product); dev_desc->product);
break; break;
case DEV_TYPE_UNKNOWN: case IF_TYPE_UNKNOWN:
default: default:
puts ("not available\n"); puts ("not available\n");
return; return;
......
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