From 5e44252735c2cc7d7144043303eba17d8c89e5c9 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 8 Jan 2019 00:17:44 +0100 Subject: console/init: Print log level in coreboot banner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes, it’s not clear, what log level is configured (in Kconfig and CMOS), so print the log level in the banner. coreboot-4.9-354-gff6e99cebe Tue Jan 15 15:23:20 UTC 2019 bootblock starting (log level: 7)... Change-Id: I82c87ae90cd53fd47458fc6df3ef2c7f238f0f3d Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/c/30935 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes Reviewed-by: Arthur Heymans Reviewed-by: Patrick Georgi --- src/console/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/console') diff --git a/src/console/init.c b/src/console/init.c index ff1d61639a..8aa7d7df68 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -83,6 +83,7 @@ asmlinkage void console_init(void) car_set_var(console_inited, 1); - printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_STRING " starting...\n", - coreboot_version, coreboot_extra_version, coreboot_build); + printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_STRING " starting (log level: %i)...\n", + coreboot_version, coreboot_extra_version, coreboot_build, + get_log_level()); } -- cgit v1.2.3