]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "printk: make sure to print log on console."
authorPetr Mladek <pmladek@suse.com>
Mon, 10 Sep 2018 13:52:06 +0000 (15:52 +0200)
committerPetr Mladek <pmladek@suse.com>
Tue, 11 Sep 2018 08:04:34 +0000 (10:04 +0200)
commit2b43e0e566d3cdaa03133a3117a9748fe8829356
tree578e5ed26be389ac68286930e5c0079035d59118
parent5d93e763fe0dec1fed123b8ed1ecf98c85078f04
Revert "printk: make sure to print log on console."

This reverts commit 9ff40b4b844a718d9e76983c6739f1de62beabf5.

The visibility of early messages did not longer take into account
"quiet", "debug", and "loglevel" early parameters.

It would be possible to invalidate and recompute LOG_NOCONS flag
for the affected messages. But it would be hairy.

Instead this patch just reverts the problematic commit. We could
come up with a better solution for the original problem. For example,
we could simplify the logic and just mark messages that should always
be visible or always invisible on the console.

Also this patch reverts the related build fix commit 7fe673beb77f8
("printk: Fix warning about unused suppress_message_printing").

Finally, this patch does not put back the unused LOG_NOCONS flag.

Link: http://lkml.kernel.org/r/20180910145747.emvfzv4mzlk5dfqk@pathway.suse.cz
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Maninder Singh <maninder1.s@samsung.com>
Reported-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk.c