From: Julien Grall <julien.grall@linaro.org>
To: xen-devel@lists.xenproject.org
Cc: stefano.stabellini@citrix.com,
Julien Grall <julien.grall@linaro.org>,
tim@xen.org, ian.campbell@citrix.com
Subject: [PATCH v3 1/5] xen/arm: earlyprintk: move early_flush in early_puts
Date: Wed, 12 Mar 2014 14:34:47 +0000 [thread overview]
Message-ID: <1394634891-27906-2-git-send-email-julien.grall@linaro.org> (raw)
In-Reply-To: <1394634891-27906-1-git-send-email-julien.grall@linaro.org>
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>
---
xen/arch/arm/early_printk.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/xen/arch/arm/early_printk.c b/xen/arch/arm/early_printk.c
index 2870a30..b59ea2e 100644
--- a/xen/arch/arm/early_printk.c
+++ b/xen/arch/arm/early_printk.c
@@ -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;
--
1.7.10.4
next prev parent reply other threads:[~2014-03-12 14:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 14:34 [PATCH v3 0/5] xen/arm: Merge early_printk function in console code Julien Grall
2014-03-12 14:34 ` Julien Grall [this message]
2014-03-12 14:34 ` [PATCH v3 2/5] xen/arm: earlyprintk: export early_puts Julien Grall
2014-03-12 14:34 ` [PATCH v3 3/5] xen/arm: Rename EARLY_PRINTK compile option to CONFIG_EARLY_PRINTK Julien Grall
2014-03-12 14:34 ` [PATCH v3 4/5] xen/console: Add support for early printk Julien Grall
2014-03-12 15:20 ` Jan Beulich
2014-03-12 15:32 ` Julien Grall
2014-03-12 14:34 ` [PATCH v3 5/5] xen/arm: Replace early_{printk, panic} call to {printk, panic} call Julien Grall
2014-03-12 15:15 ` [PATCH v3 0/5] xen/arm: Merge early_printk function in console code Jan Beulich
2014-03-12 15:31 ` Julien Grall
2014-03-12 16:44 ` Jan Beulich
2014-03-12 16:52 ` Ian Campbell
2014-03-14 14:42 ` Ian Campbell
2014-03-14 15:42 ` Julien Grall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1394634891-27906-2-git-send-email-julien.grall@linaro.org \
--to=julien.grall@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).