Commit 5a43ee65 authored by Will Schmidt's avatar Will Schmidt Committed by Paul Mackerras

[PATCH] nvram_print_partitions cosmetic fixup

This is a cosmetic fixup.   When printing the nvram partition table, the
first couple entries have a shorter 'index' value than the others, so
table is a bit askew.   This change makes the table look pretty.
Tested on pseries and g5.   Footnote: yes, this table is normally hidden
behind a DEBUG_NVRAM #define.
Signed-off-by: default avatarWill Schmidt <willschm@us.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent c5c45913
...@@ -204,7 +204,7 @@ static void nvram_print_partitions(char * label) ...@@ -204,7 +204,7 @@ static void nvram_print_partitions(char * label)
printk(KERN_WARNING "indx\t\tsig\tchks\tlen\tname\n"); printk(KERN_WARNING "indx\t\tsig\tchks\tlen\tname\n");
list_for_each(p, &nvram_part->partition) { list_for_each(p, &nvram_part->partition) {
tmp_part = list_entry(p, struct nvram_partition, partition); tmp_part = list_entry(p, struct nvram_partition, partition);
printk(KERN_WARNING "%d \t%02x\t%02x\t%d\t%s\n", printk(KERN_WARNING "%4d \t%02x\t%02x\t%d\t%s\n",
tmp_part->index, tmp_part->header.signature, tmp_part->index, tmp_part->header.signature,
tmp_part->header.checksum, tmp_part->header.length, tmp_part->header.checksum, tmp_part->header.length,
tmp_part->header.name); tmp_part->header.name);
......
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