]> err.no Git - linux-2.6/commitdiff
x86: PAT bug fix for attribute type check after reserve_memtype, debug
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>
Tue, 25 Mar 2008 23:51:26 +0000 (16:51 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:20 +0000 (17:41 +0200)
Make the PAT related printks in ioremap pr_debug.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/ioremap.c

index 3f7f05e2c434d3f8469f8d7c00b6a87f28488ea8..7338c5d3dd377ef98dfccd6fa7b4422974111844 100644 (file)
@@ -167,7 +167,7 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
        retval = reserve_memtype(phys_addr, phys_addr + size,
                                                prot_val, &new_prot_val);
        if (retval) {
-               printk("reserve_memtype returned %d\n", retval);
+               pr_debug("Warning: reserve_memtype returned %d\n", retval);
                return NULL;
        }
 
@@ -184,7 +184,7 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
                      new_prot_val == _PAGE_CACHE_WC)) ||
                    (prot_val == _PAGE_CACHE_WC &&
                     new_prot_val == _PAGE_CACHE_WB)) {
-                       printk(
+                       pr_debug(
                "ioremap error for 0x%llx-0x%llx, requested 0x%lx, got 0x%lx\n",
                                phys_addr, phys_addr + size,
                                prot_val, new_prot_val);