Re: [PATCH] printk/panic: Add option allow non panic cpus logging to ringbuffer

From: John Ogness
Date: Mon Mar 17 2025 - 10:13:33 EST


On 2025-03-17, Petr Mladek <pmladek@xxxxxxxx> wrote:
>> +#ifdef CONFIG_PRINTK_CALLER
>> +static int __init printk_debug_non_panic_cpus_setup(char *str)
>> +{
>> + printk_debug_non_panic_cpus = true;
>> + pr_info("printk: keep printk all cpu in panic.\n");
>
> I would update the message:
>
> pr_info("printk: allow messages from non-panic CPUs in panic()\n");

Note that every printk message in printk.c is automatically prepended
with "printk: " (see #define pr_fmt(fmt) at the top of printk.c) so
please just use:

pr_info("allow messages from non-panic CPUs in panic()\n");

John Ogness