From 6f2eff68072bdb120498455430a0bfa790b8ec57 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Wed, 22 Oct 2008 18:31:42 +0000 Subject: [PATCH] This patch fixes 921 so that the log_level works again. Sorry about that. Signed-off-by: Myles Watson Acked-by: Myles Watson Thanks, Myles git-svn-id: svn://coreboot.org/repository/coreboot-v3@942 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- lib/console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/console.c b/lib/console.c index 08c192a1a7..beb755f835 100644 --- a/lib/console.c +++ b/lib/console.c @@ -138,13 +138,13 @@ int printk(int msg_level, const char *fmt, ...) console_tx_byte('>', (void *)0); i = 3; +#else + i = 0; +#endif if (msg_level > console_loglevel()) { return 0; } -#else - i = 0; -#endif va_start(args, fmt); i += vtxprintf(console_tx_byte, (void *)0, fmt, args);