Commit 0072aced authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka
Browse files

ipipe: printk: shorten deferred output handling

parent c50381a7
......@@ -2065,6 +2065,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;
......@@ -2078,13 +2087,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