Skip to content

Commit ee19b42

Browse files
JoePerchesmichalsimek
authored andcommitted
microblaze: 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: Joe Perches <joe@perches.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
1 parent 2e7ff47 commit ee19b42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/microblaze/mm/pgtable.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void __iomem *__ioremap(phys_addr_t addr, unsigned long size,
8080
!(p >= virt_to_phys((unsigned long)&__bss_stop) &&
8181
p < virt_to_phys((unsigned long)__bss_stop))) {
8282
printk(KERN_WARNING "__ioremap(): phys addr "PTE_FMT
83-
" is RAM lr %p\n", (unsigned long)p,
83+
" is RAM lr %pf\n", (unsigned long)p,
8484
__builtin_return_address(0));
8585
return NULL;
8686
}

0 commit comments

Comments
 (0)