Re: [PATCH v3 1/5] panic: clean up code for console replay

From: Petr Mladek
Date: Tue Aug 12 2025 - 07:59:44 EST


On Tue 2025-07-15 11:27:54, Feng Tang wrote:
> On Tue, Jul 15, 2025 at 06:48:47AM +0400, Askar Safin wrote:
> >
> > ---- On Tue, 15 Jul 2025 05:34:39 +0400 Feng Tang <feng.tang@xxxxxxxxxxxxxxxxx> wrote ---
> > > I see. How about changing the patch to:
> > >
> > > - bit 5: print all printk messages in buffer
> > > + bit 5: replay all kernel messages on consoles at the end of panic
> >
> > Yes, I agree!
>
> Hi Andrew,
>
> Could you help to squash below patch to 1/5 patch "panic: clean up code
> for console replay" in the nonmmu-unstable branch? Thanks!
>
> - Feng
>
> ---
> Documentation/admin-guide/kernel-parameters.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index f34de9978a91..a84d3f7f5bbf 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -4533,7 +4533,7 @@
> bit 2: print timer info
> bit 3: print locks info if CONFIG_LOCKDEP is on
> bit 4: print ftrace buffer
> - bit 5: replay all messages on consoles at the end of panic
> + bit 5: replay all kernel messages on consoles at the end of panic
> bit 6: print all CPUs backtrace (if available in the arch)
> bit 7: print only tasks in uninterruptible (blocked) state
> *Be aware* that this option may print a _lot_ of lines,

Yes, this looks better.

It sees that this change is missing in the mainline.
Fang, could you please send it as a followup fix, please?

Best Regards,
Petr