Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42fde7a0 authored by Yinghai Lu's avatar Yinghai Lu Committed by H. Peter Anvin
Browse files

x86: mtrr_cleanup: print out correct type v2



Print out the correct type when the Write Protected (WP) type is seen.

Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 8bb39311
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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"))
			);
	}