Commit b1224e00 authored by Tony Lindgren's avatar Tony Lindgren

Add back low-level debug hack

Add back low-level debug hack
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 4bb9f8b5
...@@ -44,6 +44,10 @@ void __attribute__((weak)) early_printk(const char *fmt, ...) ...@@ -44,6 +44,10 @@ void __attribute__((weak)) early_printk(const char *fmt, ...)
#define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT) #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.. */ /* printk's without a loglevel use this.. */
#define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */ #define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */
...@@ -715,6 +719,10 @@ asmlinkage int vprintk(const char *fmt, va_list args) ...@@ -715,6 +719,10 @@ asmlinkage int vprintk(const char *fmt, va_list args)
printed_len += vscnprintf(printk_buf + printed_len, printed_len += vscnprintf(printk_buf + printed_len,
sizeof(printk_buf) - printed_len, fmt, args); sizeof(printk_buf) - printed_len, fmt, args);
#ifdef CONFIG_DEBUG_LL
printascii(printk_buf);
#endif
/* /*
* Copy the output into log_buf. If the caller didn't provide * Copy the output into log_buf. If the caller didn't provide
* appropriate log level tags, we insert them here * appropriate log level tags, we insert them here
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment