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

From: Dmitry Safonov
Date: Wed Nov 06 2019 - 11:40:00 EST


Hi Sergey,

On 11/6/19 4:38 AM, Sergey Senozhatsky wrote:
> On (19/11/06 03:04), Dmitry Safonov wrote:
> [..]
>> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
>> index dd05a378631a..774ff0d8dfe9 100644
>> --- a/kernel/sched/core.c
>> +++ b/kernel/sched/core.c
>> @@ -3858,7 +3858,7 @@ static noinline void __schedule_bug(struct task_struct *prev)
>> if (IS_ENABLED(CONFIG_DEBUG_PREEMPT)
>> && in_atomic_preempt_off()) {
>> pr_err("Preemption disabled at:");
>> - print_ip_sym(preempt_disable_ip);
>> + print_ip_sym(KERN_ERR, preempt_disable_ip);
>> pr_cont("\n");
>
> Is this working with pr_cont()?

print_ip_sym() will cause log_store()..
And pr_cont("\n") will go here:
: /* Skip empty continuation lines that couldn't be added - they just
flush */
: if (!text_len && (lflags & LOG_CONT))
: return 0;

So it doesn't do anything. I didn't want to change any behavior in the
patch, but seems that I can remove this pr_cont() while at here.

Thanks,
Dmitry