Commit 98cd902c 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 5a50e5bf
......@@ -514,6 +514,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;
......@@ -536,6 +538,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