Re: [PATCH v7 10/13] printk: Add sysctl interface to set global loglevels

From: Petr Mladek

Date: Fri Nov 21 2025 - 09:23:22 EST


On Wed 2025-11-19 03:07:46, Chris Down wrote:
> Introduce two new sysctl interfaces for configuring global loglevels:
>
> - kernel.console_loglevel: Sets the global console loglevel, determining
> the minimum priority of messages printed to consoles. Messages with a
> loglevel lower than this value will be printed.
> - kernel.default_message_loglevel: Sets the default loglevel for
> messages that do not specify an explicit loglevel.
>
> The kernel.printk sysctl was previously used to set multiple loglevel
> parameters simultaneously, but it was confusing and lacked proper
> validation. By introducing these dedicated sysctl interfaces, we provide
> a clearer and more granular way to configure the loglevels.
>
> Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>
> Signed-off-by: Chris Down <chris@xxxxxxxxxxxxxx>

Looks good and works well:

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Tested-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr