ARM: Make low-level printk work
authorTony Lindgren <tony@atomide.com>
Mon, 9 May 2005 21:10:26 +0000 (14:10 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:54:01 +0000 (13:54 -0800)
Makes low-level printk work.

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

index 2ce8826f1053d801f0b003f5a3e67de0fdfe8e30..eeee1032667fc99c831bbcba8da9c8d022ac109c 100644 (file)
 #include "console_cmdline.h"
 #include "braille.h"
 
+#ifdef CONFIG_DEBUG_LL
+extern void printascii(char *);
+#endif
+
 int console_printk[4] = {
        CONSOLE_LOGLEVEL_DEFAULT,       /* console_loglevel */
        MESSAGE_LOGLEVEL_DEFAULT,       /* default_message_loglevel */
@@ -1724,6 +1728,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--;