Commit 136c82c6 authored by J.A. Magallón's avatar J.A. Magallón Committed by Ingo Molnar

x86: mtrr_cleanup try gran_size to less than 1M, cleanup

Patch below cleans up formatting, with space for big bases and sizes (64 Gb).
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2ffb3501
...@@ -405,9 +405,9 @@ static int mtrr_seq_show(struct seq_file *seq, void *offset) ...@@ -405,9 +405,9 @@ static int mtrr_seq_show(struct seq_file *seq, void *offset)
} }
/* RED-PEN: base can be > 32bit */ /* RED-PEN: base can be > 32bit */
len += seq_printf(seq, len += seq_printf(seq,
"reg%02i: base=0x%05lx000 (%4luMB), size=%4lu%cB: %s, count=%d\n", "reg%02i: base=0x%06lx000 (%5luMB), size=%5lu%cB, count=%d: %s\n",
i, base, base >> (20 - PAGE_SHIFT), size, factor, i, base, base >> (20 - PAGE_SHIFT), size, factor,
mtrr_attrib_to_str(type), mtrr_usage_table[i]); mtrr_usage_table[i], mtrr_attrib_to_str(type));
} }
} }
return 0; return 0;
......
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