early_puts function will be exported to be used in the console code. To
avoid loosing characters (see why in commit
cafdceb "xen/arm: avoid lost
characters with early_printk), early_flush needs to be called in this
function.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
early_putch(*s);
s++;
}
-}
-
-static void __init early_vprintk(const char *fmt, va_list args)
-{
- vsnprintf(buf, sizeof(buf), fmt, args);
- early_puts(buf);
/*
* Wait the UART has finished to transfer all characters before
early_flush();
}
+static void __init early_vprintk(const char *fmt, va_list args)
+{
+ vsnprintf(buf, sizeof(buf), fmt, args);
+ early_puts(buf);
+}
+
void __init early_printk(const char *fmt, ...)
{
va_list args;