diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-10-04 22:34:18 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-04 23:07:14 -0400 |
commit | 42fde7a05c5d6dc76e518ae12091ea897b1c132b (patch) | |
tree | 1b91305a481f706a4a90c2e32d9a1352ee5b85ef /arch/x86/kernel/cpu/mtrr/main.c | |
parent | 8bb39311bf461243f6cade3644764d848516dd23 (diff) |
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/x86/kernel/cpu/mtrr/main.c')
-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) | |||
1273 | size_base = to_size_factor(size_base, &size_factor), | 1273 | size_base = to_size_factor(size_base, &size_factor), |
1274 | start_base = range_state[i].base_pfn << (PAGE_SHIFT - 10); | 1274 | start_base = range_state[i].base_pfn << (PAGE_SHIFT - 10); |
1275 | start_base = to_size_factor(start_base, &start_factor), | 1275 | start_base = to_size_factor(start_base, &start_factor), |
1276 | type = range_state[i].type; | ||
1276 | 1277 | ||
1277 | printk(KERN_DEBUG "reg %d, base: %ld%cB, range: %ld%cB, type %s\n", | 1278 | printk(KERN_DEBUG "reg %d, base: %ld%cB, range: %ld%cB, type %s\n", |
1278 | i, start_base, start_factor, | 1279 | i, start_base, start_factor, |
1279 | size_base, size_factor, | 1280 | size_base, size_factor, |
1280 | (type == MTRR_TYPE_UNCACHABLE) ? "UC" : | 1281 | (type == MTRR_TYPE_UNCACHABLE) ? "UC" : |
1281 | ((type == MTRR_TYPE_WRBACK) ? "WB" : "Other") | 1282 | ((type == MTRR_TYPE_WRPROT) ? "WP" : |
1283 | ((type == MTRR_TYPE_WRBACK) ? "WB" : "Other")) | ||
1282 | ); | 1284 | ); |
1283 | } | 1285 | } |
1284 | 1286 | ||