summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-25 17:14:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-05 10:15:48 +0200
commit4960dc9db00fcf5058196dbcb94c2f139999bd2e (patch)
tree9d61a2eab6283efb10dc7fc57a8578d7189609ee /common
parentabd545d2f9b91268ed90879d929b0e5e055d574d (diff)
downloadbarebox-4960dc9db00fcf5058196dbcb94c2f139999bd2e.tar.gz
barebox-4960dc9db00fcf5058196dbcb94c2f139999bd2e.tar.xz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/console.c8
-rw-r--r--common/console_simple.c2
2 files changed, 5 insertions, 5 deletions
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:
diff --git a/common/console_simple.c b/common/console_simple.c
index 1fe569ef9d..101064b69a 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -28,7 +28,7 @@ EXPORT_SYMBOL(console_puts);
void console_putc(unsigned int ch, char c)
{
if (!console) {
- PUTC_LL(c);
+ putc_ll(c);
return;
}