diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/printk.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/kernel/printk.c b/kernel/printk.c index 8212c1aef12..9cb84eb1a9d 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 @@ -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--; |