Skip to content

Commit d0729bc

Browse files
sergey-senozhatskyvineetgarc
authored andcommitted
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>
1 parent 329b413 commit d0729bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arc/kernel/stacktrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs,
163163
*/
164164
static int __print_sym(unsigned int address, void *unused)
165165
{
166-
__print_symbol(" %s\n", address);
166+
printk(" %pS\n", (void *)address);
167167
return 0;
168168
}
169169

0 commit comments

Comments
 (0)