aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2005-05-09 14:10:26 -0700
committerAndrey Konovalov <andrey.konovalov@linaro.org>2013-05-15 19:52:07 +0400
commit892a9def3b2bdc293f0897392ba110b01de3eabf (patch)
treebf029d23509a050f7270966e8a5fe822a0bcc558
parentad0bd36b1474802b6f2c93e7f9e5f80892d4237b (diff)
Makes low-level printk work. Signed-off-by: Tony Lindgren <tony@atomide.com> Conflicts: kernel/printk.c
-rw-r--r--kernel/printk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index fa36e1494420..1e75d13f431e 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -51,6 +51,10 @@
#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
@@ -1543,6 +1547,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--;