[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8750aff1-036b-4604-27ab-5e04c7f9eeb4@arista.com>
Date: Wed, 6 Nov 2019 16:00:09 +0000
From: Dmitry Safonov <dima@...sta.com>
To: Will Deacon <will@...nel.org>
Cc: linux-kernel@...r.kernel.org,
Dmitry Safonov <0x7f454c46@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Ingo Molnar <mingo@...nel.org>, Jiri Slaby <jslaby@...e.com>,
Petr Mladek <pmladek@...e.com>,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>,
Catalin Marinas <catalin.marinas@....com>,
Russell King <linux@...linux.org.uk>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 09/50] arm64: Add loglvl to dump_backtrace()
On 11/6/19 1:25 PM, Will Deacon wrote:
> On Wed, Nov 06, 2019 at 03:05:00AM +0000, Dmitry Safonov wrote:
[..]
>> @@ -82,12 +82,13 @@ static void dump_kernel_instr(const char *lvl, struct pt_regs *regs)
>> printk("%sCode: %s\n", lvl, str);
>> }
>>
>> -void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
>> +void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk,
>> + const char *loglvl)
>> {
>> struct stackframe frame;
>> int skip = 0;
>>
>> - pr_debug("%s(regs = %p tsk = %p)\n", __func__, regs, tsk);
>> + printk("%s%s(regs = %p tsk = %p)\n", loglvl, __func__, regs, tsk);
>
> This one needs to stay as pr_debug().
Makes sense, it's debug rather part of backtrace, will fix.
Thanks,
Dmitry
Powered by blists - more mailing lists