Commit 653ae97b authored by Pat Wood's avatar Pat Wood
Browse files

display partition numbers starting at "1" instead of "0"; corresponds to

command usage and partition numbering in linux nand driver
parent 606c0688
...@@ -166,18 +166,15 @@ void printmbr(MBR *mbr) ...@@ -166,18 +166,15 @@ void printmbr(MBR *mbr)
printmbrheader(mbr); printmbrheader(mbr);
for(part_cnt = 0; part_cnt < mbr->PartCount && part_cnt < MAX_PART_COUNT; part_cnt++) for(part_cnt = 0; part_cnt < mbr->PartCount && part_cnt < MAX_PART_COUNT; part_cnt++)
{
if(1 || (mbr->array[part_cnt].user_type == 2) || (mbr->array[part_cnt].user_type == 0))
{ {
printf("partition %2d: class = %12s, name = %12s, partition start = %8d, partition size = %8d user_type=%d\n", printf("partition %2d: class = %12s, name = %12s, partition start = %8d, partition size = %8d user_type=%d\n",
part_cnt, part_cnt + 1,
mbr->array[part_cnt].classname, mbr->array[part_cnt].classname,
mbr->array[part_cnt].name, mbr->array[part_cnt].name,
mbr->array[part_cnt].addrlo, mbr->array[part_cnt].addrlo,
mbr->array[part_cnt].lenlo, mbr->array[part_cnt].lenlo,
mbr->array[part_cnt].user_type); mbr->array[part_cnt].user_type);
} }
}
} }
void checkmbrs(int fd) void checkmbrs(int fd)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment