Commit c94f4cad authored by Philippe Gerum's avatar Philippe Gerum

ipipe: printk: shorten deferred output handling

parent e713bb4c
......@@ -1967,6 +1967,15 @@ int __ipipe_log_printk(const char *fmt, va_list args)
return ret;
}
static void do_deferred_vprintk(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
vprintk_func(fmt, args);
va_end(args);
}
void __ipipe_flush_printk (unsigned virq, void *cookie)
{
char *p = __ipipe_printk_buf;
......@@ -1980,13 +1989,12 @@ void __ipipe_flush_printk (unsigned virq, void *cookie)
lmax = __ipipe_printk_fill;
while (out < lmax) {
len = strlen(p) + 1;
printk("%s",p);
do_deferred_vprintk("%s", p);
p += len;
out += len;
}
raw_spin_lock_irqsave(&__ipipe_printk_lock, flags);
}
while (__ipipe_printk_fill != lmax);
} while (__ipipe_printk_fill != lmax);
__ipipe_printk_fill = 0;
......
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