From 4960dc9db00fcf5058196dbcb94c2f139999bd2e Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 25 Aug 2013 17:14:57 +0200 Subject: rework debug_ll Convert to static inline functions and use lower case letters for function names. Also, include mach/debug_ll.h when an architecture provides support for debug_ll, not only when it's actually enabled. This allows architecures to put some UART initialization code into mach/debug_ll.h which is compiled out when debug_ll is disabled. Signed-off-by: Sascha Hauer --- common/console.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/console.c') diff --git a/common/console.c b/common/console.c index 402dcf53ec..d196e6df2b 100644 --- a/common/console.c +++ b/common/console.c @@ -93,9 +93,9 @@ static int console_std_set(struct device_d *dev, struct param_d *param, if (initialized < CONSOLE_INIT_FULL) { char ch; initialized = CONSOLE_INIT_FULL; - PUTS_LL("Switch to console ["); - PUTS_LL(dev_name(dev)); - PUTS_LL("]\n"); + puts_ll("Switch to console ["); + puts_ll(dev_name(dev)); + puts_ll("]\n"); barebox_banner(); while (kfifo_getc(console_output_fifo, &ch) == 0) console_putc(CONSOLE_STDOUT, ch); @@ -282,7 +282,7 @@ void console_putc(unsigned int ch, char c) case CONSOLE_INITIALIZED_BUFFER: kfifo_putc(console_output_fifo, c); - PUTC_LL(c); + putc_ll(c); return; case CONSOLE_INIT_FULL: -- cgit v1.2.3