From 5056b10174d4e0963f3c621dd1cb4a90afe172f5 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Wed, 22 Oct 2008 19:18:04 +0000 Subject: [PATCH] This patch fixes the fix! Sorry again. Signed-off-by: Myles Watson Acked-by: Myles Watson Thanks, Myles git-svn-id: svn://coreboot.org/repository/coreboot-v3@944 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- lib/console.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/console.c b/lib/console.c index beb755f835..29b2524959 100644 --- a/lib/console.c +++ b/lib/console.c @@ -132,6 +132,10 @@ int printk(int msg_level, const char *fmt, ...) va_list args; int i; + if (msg_level > console_loglevel()) { + return 0; + } + #ifdef CONFIG_CONSOLE_PREPEND_LOG_LEVEL console_tx_byte('<', (void *)0); console_tx_byte(msg_level + '0', (void *)0); @@ -142,10 +146,6 @@ int printk(int msg_level, const char *fmt, ...) i = 0; #endif - if (msg_level > console_loglevel()) { - return 0; - } - va_start(args, fmt); i += vtxprintf(console_tx_byte, (void *)0, fmt, args); va_end(args);