Use the new vsprintf extension to avoid any possible
message interleaving.

Consolidate multiple printks into a one.

Signed-off-by: Joe Perches <j...@perches.com>
---
 arch/mn10300/kernel/traps.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/mn10300/kernel/traps.c b/arch/mn10300/kernel/traps.c
index b900e5a..d263b70 100644
--- a/arch/mn10300/kernel/traps.c
+++ b/arch/mn10300/kernel/traps.c
@@ -256,13 +256,13 @@ void show_trace(unsigned long *sp)
                }
 
                if (__kernel_text_address(addr)) {
-                       printk(" [<%08lx>]", addr);
+                       const char *known = "";
                        if (stack >= raslot)
                                raslot = ULONG_MAX;
                        else
-                               printk(" ?");
-                       print_symbol(" %s", addr);
-                       printk("\n");
+                               known = " ?";
+                       printk(" [<%08lx>]%s %pSR\n",
+                              addr, known, (void *)addr);
                }
        }
 
-- 
1.7.8.112.g3fd21

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to