mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] console: use debug_ll before the console is available
@ 2012-10-16 10:05 Jean-Christophe PLAGNIOL-VILLARD
  2012-10-16 22:01 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-16 10:05 UTC (permalink / raw)
  To: barebox

This will allow to have the same feature as earlyprintk in the kernel

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 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 <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:
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 <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')
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-16 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-16 10:05 [PATCH 1/1] console: use debug_ll before the console is available Jean-Christophe PLAGNIOL-VILLARD
2012-10-16 22:01 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox