[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 12 Dec 2012 10:18:58 -0800
From: Joe Perches <joe@...ches.com>
To: Jiri Kosina <trivial@...nel.org>
Cc: David Howells <dhowells@...hat.com>,
Koichi Yasutake <yasutake.koichi@...panasonic.com>,
linux-am33-list@...hat.com, linux-kernel@...r.kernel.org
Subject: [TRIVIAL PATCH 09/26] mn10300: Convert print_symbol to %pSR
Use the new vsprintf extension to avoid any possible
message interleaving.
Consolidate multiple printks into a one.
Signed-off-by: Joe Perches <joe@...ches.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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists