Commit 8ec6e332eace0ee78c71ee5f645d12b06813b86f
Committed by
Wolfgang Denk
1 parent
b64b8a0bd3
Exists in
master
and in
57 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
disk/part.c
| ... | ... | @@ -109,7 +109,7 @@ |
| 109 | 109 | lbaint_t lba512; |
| 110 | 110 | #endif |
| 111 | 111 | |
| 112 | - switch (dev_desc->type) { | |
| 112 | + switch (dev_desc->if_type) { | |
| 113 | 113 | case IF_TYPE_SCSI: |
| 114 | 114 | printf ("(%d:%d) Vendor: %s Prod.: %s Rev: %s\n", |
| 115 | 115 | dev_desc->target,dev_desc->lun, |
| ... | ... | @@ -124,7 +124,7 @@ |
| 124 | 124 | dev_desc->revision, |
| 125 | 125 | dev_desc->product); |
| 126 | 126 | break; |
| 127 | - case DEV_TYPE_UNKNOWN: | |
| 127 | + case IF_TYPE_UNKNOWN: | |
| 128 | 128 | default: |
| 129 | 129 | puts ("not available\n"); |
| 130 | 130 | return; |