Skip to content

Commit b450e5e

Browse files
Venki PallipadiIngo Molnar
authored andcommitted
x86: PAT bug fix for attribute type check after reserve_memtype, debug
Make the PAT related printks in ioremap pr_debug. Signed-off-by: Venkatesh Pallipadi <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent dee7cbb commit b450e5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/mm/ioremap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
167167
retval = reserve_memtype(phys_addr, phys_addr + size,
168168
prot_val, &new_prot_val);
169169
if (retval) {
170-
printk("reserve_memtype returned %d\n", retval);
170+
pr_debug("Warning: reserve_memtype returned %d\n", retval);
171171
return NULL;
172172
}
173173

@@ -184,7 +184,7 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
184184
new_prot_val == _PAGE_CACHE_WC)) ||
185185
(prot_val == _PAGE_CACHE_WC &&
186186
new_prot_val == _PAGE_CACHE_WB)) {
187-
printk(
187+
pr_debug(
188188
"ioremap error for 0x%llx-0x%llx, requested 0x%lx, got 0x%lx\n",
189189
phys_addr, phys_addr + size,
190190
prot_val, new_prot_val);

0 commit comments

Comments
 (0)