Commit 61e3e5a7 authored by Catalin Marinas's avatar Catalin Marinas

Add a printascii call in the vprintk function

This is useful for initial debugging and when CONFIG_DEBUG_LL is set.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 4d5c5968
......@@ -487,6 +487,8 @@ asmlinkage int printk(const char *fmt, ...)
/* cpu currently holding logbuf_lock */
static volatile unsigned int printk_cpu = UINT_MAX;
extern void printascii(const char *string);
asmlinkage int vprintk(const char *fmt, va_list args)
{
unsigned long flags;
......@@ -507,6 +509,9 @@ asmlinkage int vprintk(const char *fmt, va_list args)
/* Emit the output into the temporary buffer */
printed_len = vscnprintf(printk_buf, sizeof(printk_buf), fmt, args);
#ifdef CONFIG_DEBUG_LL
printascii(printk_buf);
#endif
/*
* Copy the output into log_buf. If the caller didn't provide
......
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