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:
Julien Grall authored and Ian Campbell committed 2014-04-01 11:27:21 +01:00
1 parent b9f1e82921
commit 8cfbbb404c
1 file changed
+6 -6
+6 -6
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.