From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 5.mo4.mail-out.ovh.net ([188.165.44.50] helo=mo4.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TO44N-0004UI-LM for barebox@lists.infradead.org; Tue, 16 Oct 2012 10:08:18 +0000 Received: from mail97.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo4.mail-out.ovh.net (Postfix) with SMTP id EE0D9105043D for ; Tue, 16 Oct 2012 12:14:50 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 16 Oct 2012 12:05:53 +0200 Message-Id: <1350381953-17388-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/1] console: use debug_ll before the console is available To: barebox@lists.infradead.org This will allow to have the same feature as earlyprintk in the kernel Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console.c | 2 ++ common/console_simple.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/console.c b/common/console.c index b4b3a99..2e8c973 100644 --- a/common/console.c +++ b/common/console.c @@ -32,6 +32,7 @@ #include #include #include +#include LIST_HEAD(console_list); EXPORT_SYMBOL(console_list); @@ -280,6 +281,7 @@ void console_putc(unsigned int ch, char c) case CONSOLE_INITIALIZED_BUFFER: kfifo_putc(console_output_fifo, c); + PUTC_LL(c); return; case CONSOLE_INIT_FULL: diff --git a/common/console_simple.c b/common/console_simple.c index 7ad88d9..a4d4315 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') -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox