Re: [PATCH 13/13] arc: do not use __print_symbol()
From: Sergey Senozhatsky
Date: Mon Dec 11 2017 - 21:41:22 EST
On (12/11/17 08:28), Vineet Gupta wrote:
> On 12/11/2017 04:53 AM, Sergey Senozhatsky wrote:
> > __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@xxxxxxxxx>
> > Cc: Vineet Gupta <vgupta@xxxxxxxxxxxx>
>
> Applied to arc for-curr
thanks.
-ss