diff options
author | Joe Perches <joe@perches.com> | 2012-12-12 22:18:57 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-04-29 17:21:06 +0400 |
commit | c8d5cb74d52749c242e15bdd50298a1168d90a4d (patch) | |
tree | f85713609ffdf4154c0db6ffee50b28175d1fa71 /arch/m32r | |
parent | 69963a072cc6b6c24ae12355e71584e05e13ee45 (diff) | |
download | linux-c8d5cb74d52749c242e15bdd50298a1168d90a4d.tar.xz |
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')
-rw-r--r-- | arch/m32r/kernel/traps.c | 6 |
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"); } |