ARM: Make low-level printk work
authorTony Lindgren <tony@atomide.com>
Mon, 9 May 2005 21:10:26 +0000 (14:10 -0700)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:03 +0000 (17:49 -0700)
Makes low-level printk work.

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

index 8fe465ac008aebdcdbb0e9db9fcd644d5b12c231..b11cffec38fc85c380a747d72c5c60ac8685f0ec 100644 (file)
@@ -57,6 +57,10 @@ void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...)
 
 #define __LOG_BUF_LEN  (1 << CONFIG_LOG_BUF_SHIFT)
 
+#ifdef        CONFIG_DEBUG_LL
+extern void printascii(char *);
+#endif
+
 /* printk's without a loglevel use this.. */
 #define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */
 
@@ -736,6 +740,9 @@ asmlinkage int vprintk(const char *fmt, va_list args)
        printed_len += vscnprintf(printk_buf + printed_len,
                                  sizeof(printk_buf) - printed_len, fmt, args);
 
+#ifdef CONFIG_DEBUG_LL
+       printascii(printk_buf);
+#endif
 
        p = printk_buf;