Re: [PATCH] printk: Add loglevel for "do not print to consoles".

From: Steven Rostedt
Date: Wed May 13 2020 - 09:46:47 EST


On Wed, 13 May 2020 20:03:53 +0900
Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:

> I think that basically only oops (e.g. WARN()/BUG()/panic()) messages worth
> printing to consoles and the rest messages do not worth printing to consoles.
> Existing KERN_$LOGLEVEL is too rough-grained.

And this statement is exactly why I believe you are wrong.

Because *I* think messages to the console is more important than messages
to the logs. Several of my servers are only monitored by the console. I
seldom look at the logs on those machines.

This is a policy decision, and must be made by user space. Your use case is
not applicable to everyone else's use case. And should not be set in stone
by the kernel.

-- Steve