summaryrefslogtreecommitdiffstats
path: root/src/console/Kconfig
diff options
context:
space:
mode:
authorIgor Bagnucki <igor.bagnucki@3mdeb.com>2022-03-03 11:41:57 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-03-30 00:02:34 +0000
commitf0d65213c03db84861ada042bf02359de4dea245 (patch)
tree7fe1edb438443164324faf00dfea45ab0da1e70c /src/console/Kconfig
parent773876401d8bafae14e5010a801a3ab8e3377958 (diff)
downloadcoreboot-f0d65213c03db84861ada042bf02359de4dea245.tar.gz
coreboot-f0d65213c03db84861ada042bf02359de4dea245.tar.bz2
coreboot-f0d65213c03db84861ada042bf02359de4dea245.zip
src/console/Kconfig: Add option to disable loglevel prefix
This patch adds an option to disable loglevel prefixes. This patch helps to achieve clear messages when low loglevel is used and very few messages are displayed on a terminal. This option also allows to maintain compatibility with log readers and continuous integration systems that depend on fixed log content. If the code contains: printk(BIOS_DEBUG, "This is a debug message!\n") it will show as: [DEBUG] This is a debug message! but if the Kconfig contains: CONFIG_CONSOLE_USE_LOGLEVEL_PREFIX=n the same message will show up as This is a debug message! Signed-off-by: Igor Bagnucki <igor.bagnucki@3mdeb.com> Change-Id: I911bb601cf1933a4c6498b2ae1e4cb4d4bc85621 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63144 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/console/Kconfig')
-rw-r--r--src/console/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/console/Kconfig b/src/console/Kconfig
index 37d8fefe96bc..6152592637bd 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -395,6 +395,15 @@ config DEFAULT_CONSOLE_LOGLEVEL
endif
+config CONSOLE_USE_LOGLEVEL_PREFIX
+ bool "Use loglevel prefix to indicate line loglevel"
+ default y
+ help
+ When enabled, if the code contains a:
+ `printk(BIOS_DEBUG, "This is a debug message!\n")`,
+ it will show up as:
+ `[DEBUG] This is a debug message!`
+
config CONSOLE_USE_ANSI_ESCAPES
bool "Use ANSI escape sequences for console highlighting"
default y