9
0
Fork 0

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>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-10-16 12:05:53 +02:00 committed by Sascha Hauer
parent 5610393bc6
commit 0448644294
2 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,7 @@
#include <poller.h>
#include <linux/list.h>
#include <linux/stringify.h>
#include <debug_ll.h>
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:

View File

@ -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')