summaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>2017-12-11 21:50:25 +0900
committerVineet Gupta <vgupta@synopsys.com>2017-12-20 12:41:43 -0800
commitd0729bc6bee797fb4bcca87583af5adbfe79ecfb (patch)
tree1685889e98efbdea304d03125b3978295d0255b4 /arch/arc
parent329b4130bc5eb2a1b123a652b985dbdb08d6b9a8 (diff)
downloadlinux-d0729bc6bee797fb4bcca87583af5adbfe79ecfb.tar.bz2
arc: do not use __print_symbol()
__print_symbol() uses extra stack space to sprintf() symbol information and then to feed that buffer to printk() char buffer[KSYM_SYMBOL_LEN]; sprint_symbol(buffer, address); printk(fmt, buffer); Replace __print_symbol() with a direct printk("%pS") call. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/kernel/stacktrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/kernel/stacktrace.c b/arch/arc/kernel/stacktrace.c
index 74315f302971..bf40e06f3fb8 100644
--- a/arch/arc/kernel/stacktrace.c
+++ b/arch/arc/kernel/stacktrace.c
@@ -163,7 +163,7 @@ arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs,
*/
static int __print_sym(unsigned int address, void *unused)
{
- __print_symbol(" %s\n", address);
+ printk(" %pS\n", (void *)address);
return 0;
}