summaryrefslogtreecommitdiffstats
path: root/arch/m32r/kernel
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-12-12 10:18:57 -0800
committerJiri Kosina <jkosina@suse.cz>2013-04-29 15:21:06 +0200
commitc8d5cb74d52749c242e15bdd50298a1168d90a4d (patch)
treef85713609ffdf4154c0db6ffee50b28175d1fa71 /arch/m32r/kernel
parent69963a072cc6b6c24ae12355e71584e05e13ee45 (diff)
downloadlinux-c8d5cb74d52749c242e15bdd50298a1168d90a4d.tar.bz2
m32r: Convert print_symbol to %pSR
Use the new vsprintf extension to avoid any possible message interleaving. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'arch/m32r/kernel')
-rw-r--r--arch/m32r/kernel/traps.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/m32r/kernel/traps.c b/arch/m32r/kernel/traps.c
index 3bcb207e5b6d..9fe3467a5133 100644
--- a/arch/m32r/kernel/traps.c
+++ b/arch/m32r/kernel/traps.c
@@ -132,10 +132,8 @@ static void show_trace(struct task_struct *task, unsigned long *stack)
printk("Call Trace: ");
while (!kstack_end(stack)) {
addr = *stack++;
- if (__kernel_text_address(addr)) {
- printk("[<%08lx>] ", addr);
- print_symbol("%s\n", addr);
- }
+ if (__kernel_text_address(addr))
+ printk("[<%08lx>] %pSR\n", addr, (void *)addr);
}
printk("\n");
}