Commit 97d0441d 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 52b8a49e
...@@ -504,6 +504,8 @@ asmlinkage int printk(const char *fmt, ...) ...@@ -504,6 +504,8 @@ asmlinkage int printk(const char *fmt, ...)
/* cpu currently holding logbuf_lock */ /* cpu currently holding logbuf_lock */
static volatile unsigned int printk_cpu = UINT_MAX; static volatile unsigned int printk_cpu = UINT_MAX;
extern void printascii(const char *string);
asmlinkage int vprintk(const char *fmt, va_list args) asmlinkage int vprintk(const char *fmt, va_list args)
{ {
unsigned long flags; unsigned long flags;
...@@ -526,6 +528,9 @@ asmlinkage int vprintk(const char *fmt, va_list args) ...@@ -526,6 +528,9 @@ asmlinkage int vprintk(const char *fmt, va_list args)
/* Emit the output into the temporary buffer */ /* Emit the output into the temporary buffer */
printed_len = vscnprintf(printk_buf, sizeof(printk_buf), fmt, args); 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 * 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