Re: [PATCHv2 01/50] kallsyms/printk: Add loglvl to print_ip_sym()

From: Dmitry Safonov
Date: Fri Apr 17 2020 - 18:59:25 EST


Hi Joe,

On 3/16/20 3:29 PM, Joe Perches wrote:
> On Mon, 2020-03-16 at 14:38 +0000, Dmitry Safonov wrote:
>> print_ip_sym() needs to have a log level parameter to comply with other
>> parts being printed. Otherwise, half of the expected backtrace would be
>> printed and other may be missing with some logging level.
>
> There are 15 instances of print_ip_sym.
>
> Perhaps it'd be better to get rid of print_ip_sym
> altogether by expanding it in-place instead.

I tried this and format-string + two casts to (void *) take some space
and the resulting printk() doesn't fit 80 cols.
I guess, it's minor and it can be done on the top of v3..

>
>> arch/microblaze/kernel/unwind.c | 2 +-
>> arch/mips/kernel/traps.c | 4 ++--
>> arch/nds32/kernel/traps.c | 4 ++--
>> arch/riscv/kernel/stacktrace.c | 2 +-
>> include/linux/kallsyms.h | 4 ++--
>> kernel/locking/lockdep.c | 4 ++--
>> kernel/sched/core.c | 6 ++----
>> kernel/trace/ftrace.c | 8 ++++----
>> tools/include/linux/kallsyms.h | 2 +-
>
>

Thanks,
Dmitry