diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-01-27 15:09:13 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-04-09 11:36:06 +0200 |
commit | b2d25967142437a82da150d0134923e3fd783dbf (patch) | |
tree | 9ac69ad73a6ccf8f9ef2f90052980e41218c2fe3 /src/arch/armv7 | |
parent | 21333f96c78e6181c7a376538c48f3718b71d9ef (diff) |
console: Unify do_printk()
Change-Id: I6c50e47d9d2d0d1f42beee477e49b2a0054d1786
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5332
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/arch/armv7')
-rw-r--r-- | src/arch/armv7/early_console.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/arch/armv7/early_console.c b/src/arch/armv7/early_console.c index 7614531c71..a85f554310 100644 --- a/src/arch/armv7/early_console.c +++ b/src/arch/armv7/early_console.c @@ -20,7 +20,6 @@ #include <console/console.h> #include <console/cbmem_console.h> #include <console/uart.h> -#include <console/vtxprintf.h> /* FIXME: need to make console driver more generic */ void console_tx_byte(unsigned char byte) @@ -36,27 +35,9 @@ void console_tx_byte(unsigned char byte) #endif } -static void _console_tx_flush(void) +void console_tx_flush(void) { #if CONFIG_CONSOLE_SERIAL uart_tx_flush(); #endif } - -int do_printk(int msg_level, const char *fmt, ...) -{ - va_list args; - int i; - - if (msg_level > console_loglevel) { - return 0; - } - - va_start(args, fmt); - i = vtxprintf(console_tx_byte, fmt, args); - va_end(args); - - _console_tx_flush(); - - return i; -} |