barebox/common/version.c
Sascha Hauer 6ae9a40c79 startup: Don't print multiple lines with pr_info
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@pengutronix.de>
2014-09-30 10:44:16 +02:00

20 lines
424 B
C

#include <common.h>
#include <generated/compile.h>
#include <generated/utsrelease.h>
const char version_string[] =
"barebox " UTS_RELEASE " " UTS_VERSION "\n";
EXPORT_SYMBOL(version_string);
const char release_string[] =
"barebox-" UTS_RELEASE;
EXPORT_SYMBOL(release_string);
void barebox_banner (void)
{
printf("\n\n");
pr_info("%s", version_string);
printf("\n\n");
pr_info("Board: %s\n", barebox_get_model());
}