Fix incorrect switch for IF_TYPE in part.c
PATCH 1/1 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 574b319512b13e10800f0045e39b993f4ca25e42.
--- disk/part.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
disk/part.c +1 -1
@@ -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,
Signature · 1 line
1.5.5.1
PATCH 1/1 Fix incorrect switch for IF_TYPE in part.c
Hi Tor,
that's funny, we found this bug also - two minutes before you send the patch :-).
u-boot-users-bounces at lists.sourceforge.net wrote on :
Quoted 14 lines
Use correct field in
block_dev_desc_twhen writing interface type indev_print. Error introduced in574b319512b13e10800f0045e39b993f4ca25e42.Signed-off-by Tor Krill <[email protected]>--- disk/part.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)disk/part.c +0
-0
disk/part.c void dev_print (block_dev_desc_t *dev_desc) · line 115
Quoted 8 lines
disk/part.c +1
-1@@ -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,
Maybe it is a good idea to change the default path of the switch statement in Line 127 also:
- case DEV_TYPE_UNKNOWN:
+ case IF_TYPE_UNKNOWN:
Best Regards,
Martin Krause
PATCH 1/1 Fix incorrect switch for IF_TYPE in part.c
In reply to Tor KrillUse correct field in block_dev_desc_t when writing interface type in dev_print. Error introduced in 574b319512b13e10800f0045e39b993f4ca25e42.
Changes:
* Added fix from Martin Krause
--- disk/part.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
disk/part.c +2 -2
@@ -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 ;
Signature · 1 line
1.5.5.1
Wolfgang Denk
AppliedPATCH 1/1 Fix incorrect switch for IF_TYPE in part.c
Quoted 10 lines · In message <[email protected]> you wrote:
Use correct field in
block_dev_desc_twhen writing interface type indev_print. Error introduced in574b319512b13e10800f0045e39b993f4ca25e42.Changes:
* Added fix from Martin KrauseSigned-off-by Tor Krill <[email protected]>--- disk/part.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de In a survey taken several years ago, all incoming freshmen at MIT were asked if they expected to graduate in the top half of their class. Ninety-seven percent responded that they did.