lib: Fix banner

Define the "OpenSBI" logo string as a macro renamed BANNER, since
it is one rather than a logo.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
Damien Le Moal
2019-01-18 13:18:25 +09:00
committed by Anup Patel
parent ac3041f4e9
commit 6939d345ab

View File

@@ -17,15 +17,15 @@
#include <sbi/sbi_system.h> #include <sbi/sbi_system.h>
#include <sbi/sbi_timer.h> #include <sbi/sbi_timer.h>
static const char *logo = #define BANNER \
" ____ _____ ____ _____\n" " ____ _____ ____ _____\n" \
" / __ \\ / ____| _ \\_ _|\n" " / __ \\ / ____| _ \\_ _|\n" \
" | | | |_ __ ___ _ __ | (___ | |_) || |\n" " | | | |_ __ ___ _ __ | (___ | |_) || |\n" \
" | | | | '_ \\ / _ \\ '_ \\ \\___ \\| _ < | |\n" " | | | | '_ \\ / _ \\ '_ \\ \\___ \\| _ < | |\n" \
" | |__| | |_) | __/ | | |____) | |_) || |_\n" " | |__| | |_) | __/ | | |____) | |_) || |_\n" \
" \\____/| .__/ \\___|_| |_|_____/|____/_____|\n" " \\____/| .__/ \\___|_| |_|_____/|____/_____|\n" \
" | |\n" " | |\n" \
" |_|\n"; " |_|\n\n"
static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid) static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
{ {
@@ -62,11 +62,11 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
sbi_hart_hang(); sbi_hart_hang();
misa_string(str, sizeof(str)); misa_string(str, sizeof(str));
sbi_printf("OpenSBI v%d.%d (%s %s)\n", sbi_printf("\nOpenSBI v%d.%d (%s %s)\n",
OPENSBI_MAJOR, OPENSBI_MINOR, OPENSBI_MAJOR, OPENSBI_MINOR,
__DATE__, __TIME__); __DATE__, __TIME__);
sbi_printf("%s\n", logo); sbi_printf(BANNER);
/* Platform details */ /* Platform details */
sbi_printf("Platform Name : %s\n", sbi_platform_name(plat)); sbi_printf("Platform Name : %s\n", sbi_platform_name(plat));