summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/ds.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-02-29 01:08:02 +0400
committerDavid S. Miller <davem@davemloft.net>2012-02-29 01:08:02 +0400
commite9b57cca3dbdc7a0b90514af8bf613baf97105a5 (patch)
tree48b8ff9e570226c3ffafc3738de48f0d6c2cb057 /arch/sparc/kernel/ds.c
parentb4096504c2b6945c41eae99f85f4ec64ac19bfce (diff)
downloadlinux-e9b57cca3dbdc7a0b90514af8bf613baf97105a5.tar.xz
sparc: 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/ds.c')
-rw-r--r--arch/sparc/kernel/ds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/ds.c b/arch/sparc/kernel/ds.c
index 381edcd5bc29..e65b9fc52b49 100644
--- a/arch/sparc/kernel/ds.c
+++ b/arch/sparc/kernel/ds.c
@@ -868,7 +868,7 @@ void ldom_power_off(void)
static void ds_conn_reset(struct ds_info *dp)
{
- printk(KERN_ERR "ds-%llu: ds_conn_reset() from %p\n",
+ printk(KERN_ERR "ds-%llu: ds_conn_reset() from %pf\n",
dp->id, __builtin_return_address(0));
}