lkml.org 
[lkml]   [2012]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[TRIVIAL PATCH 09/26] mn10300: Convert print_symbol to %pSR
Date
Use the new vsprintf extension to avoid any possible
message interleaving.

Consolidate multiple printks into a one.

Signed-off-by: Joe Perches <joe@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


\
 
 \ /
  Last update: 2012-12-12 19:41    [W:0.246 / U:4.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site