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:
parent
5610393bc6
commit
0448644294
|
@ -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:
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue