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

Commit a2234b4b authored by Joe Perches's avatar Joe Perches Committed by Benjamin Herrenschmidt
Browse files

powerpc: Use vsprintf extention %pf with builtin_return_address



Emit the function name not the address when possible.

builtin_return_address() gives an address.  When building
a kernel with CONFIG_KALLSYMS, emit the actual function
name not the address.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent de801de1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,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 %p\n",
		printk("__ioremap(): phys addr 0x%llx is RAM lr %pf\n",
		       (unsigned long long)p, __builtin_return_address(0));
		return NULL;
	}