From 0448644294093325027b92b2500ee2e4212fa718 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 16 Oct 2012 12:05:53 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- common/console_simple.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/console_simple.c') 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 #include #include +#include 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') -- cgit v1.2.3