]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - lib/Kconfig.debug
printk: add Kconfig option to set default console loglevel
authorOlof Johansson <olof@lixom.net>
Tue, 13 Dec 2016 00:45:56 +0000 (16:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:09 +0000 (18:55 -0800)
commita8cfdc68f6cfc0c7ffc6d664406fe7f06f17eef4
tree3a4aa16fa248384237ec776eddf4046ef9e8f59e
parent0a4824bf8f8b88ba62c3c6e01608e8bfc2a99a17
printk: add Kconfig option to set default console loglevel

Add a configuration option to set the default console loglevel.  This
is, as before, still possible to override at runtime through bootargs
(loglevel=<x>), sysrq and /proc/printk.

There are cases where adding additional arguments on the commandline is
impractical, and changing the default for the kernel when being built
makes more sense.  Provide such a method here, for those who choose to
do so.

Also, while touching this code, clarify the difference between
MESSAGE_LOGLEVEL_DEFAULT and CONSOLE_LOGLEVEL_DEFAULT.

Link: http://lkml.kernel.org/r/1479676829-30031-1-git-send-email-olof@lixom.net
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/printk.h
lib/Kconfig.debug