iso: Fix part info command
PATCH 1/1 iso: Fix part info command
Partitions on the iso el torito partition table interpreter only start from partition 1. So when printing out the tables, let's also start counting at 1.
Signed-off-by Alexander Graf <[email protected]>
--- disk/part_iso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
disk/part_iso.c +2 -2
@@ -233,13 +233,13 @@ static void part_print_iso(struct blk_desc *dev_desc)disk_partition_t info;int i; -if (part_get_info_iso_verb (dev_desc,0 , &info,0 ) ==-1 ) { +if (part_get_info_iso_verb (dev_desc,1 , &info,0 ) ==-1 ) {printf ("** No boot partition found on device %d **\n" , dev_desc->devnum);return ; }printf ("Part Start Sect x Size Type\n" ); - i=0 ; + i=1 ; do { printf(" %2d " LBAFU " " LBAFU " %6ld %.32s\n", i, info.start, info.size, info.blksz, info.type);
Signature · 1 line
1.8.5.6
Quoted 5 lines · Alexander Graf
Partitions on the iso el torito partition table interpreter only start from partition 1. So when printing out the tables, let's also start counting at 1.
Signed-off-by Alexander Graf <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/5945a384/attachment.sig>