summaryrefslogtreecommitdiffstats
path: root/common/console_simple.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-10-16 12:05:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-30 10:23:50 +0100
commit0448644294093325027b92b2500ee2e4212fa718 (patch)
tree9687b2214e3255f0ad6a09903e7eb6aeb98365ce /common/console_simple.c
parent5610393bc6abb158ba523e5ea133b0a05017017f (diff)
downloadbarebox-0448644294093325027b92b2500ee2e4212fa718.tar.gz
barebox-0448644294093325027b92b2500ee2e4212fa718.tar.xz
console: use debug_ll before the console is available
This will allow to have the same feature as earlyprintk in the kernel Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console_simple.c')
-rw-r--r--common/console_simple.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/console_simple.c b/common/console_simple.c
index 7ad88d9a99..a4d4315c72 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -2,6 +2,7 @@
#include <common.h>
#include <fs.h>
#include <errno.h>
+#include <debug_ll.h>
LIST_HEAD(console_list);
EXPORT_SYMBOL(console_list);
@@ -85,8 +86,10 @@ EXPORT_SYMBOL(console_puts);
void console_putc(unsigned int ch, char c)
{
- if (!console)
+ if (!console) {
+ PUTC_LL(c);
return;
+ }
console->putc(console, c);
if (c == '\n')