powerpc/32: %pF is only for function pointers
authorScott Wood <scottwood@freescale.com>
Thu, 12 Mar 2015 03:13:46 +0000 (22:13 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Mar 2015 04:14:48 +0000 (15:14 +1100)
Use %pS for actual addresses, otherwise you'll get bad output
on arches like ppc64 where %pF expects a function descriptor.  Even on
other architectures, refrain from setting a bad example that people
copy.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable_32.c

index 03b1a3b0fbd539cb3cbc6232bb72f9a8a1cc94b6..24f304a9a09593ef03fe795bb2a09d73642b10a7 100644 (file)
@@ -221,7 +221,7 @@ __ioremap_caller(phys_addr_t addr, unsigned long size, unsigned long flags,
         */
        if (mem_init_done && (p < virt_to_phys(high_memory)) &&
            !(__allow_ioremap_reserved && memblock_is_region_reserved(p, size))) {
-               printk("__ioremap(): phys addr 0x%llx is RAM lr %pf\n",
+               printk("__ioremap(): phys addr 0x%llx is RAM lr %ps\n",
                       (unsigned long long)p, __builtin_return_address(0));
                return NULL;
        }