diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-10-05 04:34:18 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-05 05:07:14 +0200 |
commit | 42fde7a05c5d6dc76e518ae12091ea897b1c132b (patch) | |
tree | 1b91305a481f706a4a90c2e32d9a1352ee5b85ef /arch | |
parent | x86, debug: mtrr_cleanup print out var mtrr before change it (diff) | |
download | linux-42fde7a05c5d6dc76e518ae12091ea897b1c132b.tar.xz linux-42fde7a05c5d6dc76e518ae12091ea897b1c132b.zip |
x86: mtrr_cleanup: print out correct type v2
Print out the correct type when the Write Protected (WP) type is seen.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/mtrr/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c index 406074c46f1e..9086b38fbabe 100644 --- a/arch/x86/kernel/cpu/mtrr/main.c +++ b/arch/x86/kernel/cpu/mtrr/main.c @@ -1273,12 +1273,14 @@ static int __init mtrr_cleanup(unsigned address_bits) size_base = to_size_factor(size_base, &size_factor), start_base = range_state[i].base_pfn << (PAGE_SHIFT - 10); start_base = to_size_factor(start_base, &start_factor), + type = range_state[i].type; printk(KERN_DEBUG "reg %d, base: %ld%cB, range: %ld%cB, type %s\n", i, start_base, start_factor, size_base, size_factor, (type == MTRR_TYPE_UNCACHABLE) ? "UC" : - ((type == MTRR_TYPE_WRBACK) ? "WB" : "Other") + ((type == MTRR_TYPE_WRPROT) ? "WP" : + ((type == MTRR_TYPE_WRBACK) ? "WB" : "Other")) ); } |