summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Scheithauer <mario.scheithauer@siemens.com>2022-02-22 09:46:33 +0100
committerJulius Werner <jwerner@chromium.org>2022-02-22 23:13:50 +0000
commitf6056113e5a9f93174eb4296d1230d10ebb2bede (patch)
treee3cbbff47befcbed81e5a51c62880e335b473a5a
parente6ce594da64034227b0d806092c99475d713cb15 (diff)
downloadcoreboot-f6056113e5a9f93174eb4296d1230d10ebb2bede.tar.gz
coreboot-f6056113e5a9f93174eb4296d1230d10ebb2bede.tar.bz2
coreboot-f6056113e5a9f93174eb4296d1230d10ebb2bede.zip
console: Fix LOG_FAST macro
In the LOG_FAST macro, the comparison was incorrectly made with 'level' value. Correct is the comparison with 'speed'. With the wrong comparison you cannot set a lower level for console log, the highest level is always output. TEST: - Boot mc_ehl2 with console log level 5 and check output Change-Id: Ib5b4537ae2cbf01c51c3568d312b5242c4bee7bb Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62261 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Patrick Georgi <patrick@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
-rw-r--r--src/console/printk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console/printk.c b/src/console/printk.c
index 341c25553840..eb35c53f22ae 100644
--- a/src/console/printk.c
+++ b/src/console/printk.c
@@ -67,7 +67,7 @@ union log_state {
};
};
-#define LOG_FAST(state) (HAS_ONLY_FAST_CONSOLES || ((state).level == CONSOLE_LOG_FAST))
+#define LOG_FAST(state) (HAS_ONLY_FAST_CONSOLES || ((state).speed == CONSOLE_LOG_FAST))
static void wrap_interactive_printf(const char *fmt, ...)
{