ARM: Make low-level printk work
authorTony Lindgren <tony@atomide.com>
Mon, 9 May 2005 21:10:26 +0000 (14:10 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:38:49 +0000 (13:38 -0700)
Makes low-level printk work.

Signed-off-by: Tony Lindgren <tony@atomide.com>
kernel/printk.c

index 8212c1aef125f2d4290cbe0e55564d7e9a5a57de..9cb84eb1a9de305b7b62a7a08f86c08951637f6a 100644 (file)
 #define CREATE_TRACE_POINTS
 #include <trace/events/printk.h>
 
+#ifdef        CONFIG_DEBUG_LL
+extern void printascii(char *);
+#endif
+
 /* printk's without a loglevel use this.. */
 #define DEFAULT_MESSAGE_LOGLEVEL CONFIG_DEFAULT_MESSAGE_LOGLEVEL
 
@@ -1552,6 +1556,10 @@ asmlinkage int vprintk_emit(int facility, int level,
         */
        text_len = vscnprintf(text, sizeof(textbuf), fmt, args);
 
+#ifdef CONFIG_DEBUG_LL
+       printascii(text);
+#endif
+
        /* mark and strip a trailing newline */
        if (text_len && text[text_len-1] == '\n') {
                text_len--;