Use the new vsprintf extension to avoid any possible
message interleaving.
Signed-off-by: Joe Perches <[email protected]>
---
arch/openrisc/kernel/traps.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/arch/openrisc/kernel/traps.c b/arch/openrisc/kernel/traps.c
index 5cce396..f5c1d0a 100644
--- a/arch/openrisc/kernel/traps.c
+++ b/arch/openrisc/kernel/traps.c
@@ -56,11 +56,8 @@ void show_trace(struct task_struct *task, unsigned long
*stack)
while (valid_stack_ptr(context, stack)) {
addr = *stack++;
- if (__kernel_text_address(addr)) {
- printk(" [<%08lx>]", addr);
- print_symbol(" %s", addr);
- printk("\n");
- }
+ if (__kernel_text_address(addr))
+ printk(" [<%08lx>] %pSR\n", addr, (void *)addr);
}
printk(" =======================\n");
}
--
1.7.8.112.g3fd21
_______________________________________________
Linux mailing list
[email protected]
http://lists.openrisc.net/listinfo/linux