mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen/arm: earlyprintk: move early_flush in early_puts
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>
This commit is contained in:
1 parent
b9f1e82921
commit
8cfbbb404c
1 file changed
+6
-6
@@ -29,12 +29,6 @@ static void __init early_puts(const char *s)
|
||||
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
|
||||
@@ -43,6 +37,12 @@ static void __init early_vprintk(const char *fmt, va_list args)
|
||||
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;
|
||||
|
||||