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>
20 lines
424 B
C
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());
|
|
}
|