[PATCH 3/4] startup: Don't print multiple lines with pr_info
Sascha Hauer
s.hauer at pengutronix.de
Tue Sep 30 07:22:05 PDT 2014
Print the banner with pr_info, but the empty lines before and after
it with printf. This makes the banner show up in the log show up
properly.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
common/version.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/version.c b/common/version.c
index 51d4d48..f37cb55 100644
--- a/common/version.c
+++ b/common/version.c
@@ -12,6 +12,8 @@ EXPORT_SYMBOL(release_string);
void barebox_banner (void)
{
- pr_info("\n\n%s\n\n", version_string);
+ printf("\n\n");
+ pr_info("%s", version_string);
+ printf("\n\n");
pr_info("Board: %s\n", barebox_get_model());
}
--
2.1.0
More information about the barebox
mailing list