From 6939d345ab3f7c5360a7de3fb0000a9da5096f97 Mon Sep 17 00:00:00 2001 From: Damien Le Moal Date: Fri, 18 Jan 2019 13:18:25 +0900 Subject: [PATCH] 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 --- lib/sbi_init.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/sbi_init.c b/lib/sbi_init.c index b92c1fd6..1f1103cc 100644 --- a/lib/sbi_init.c +++ b/lib/sbi_init.c @@ -17,15 +17,15 @@ #include #include -static const char *logo = - " ____ _____ ____ _____\n" - " / __ \\ / ____| _ \\_ _|\n" - " | | | |_ __ ___ _ __ | (___ | |_) || |\n" - " | | | | '_ \\ / _ \\ '_ \\ \\___ \\| _ < | |\n" - " | |__| | |_) | __/ | | |____) | |_) || |_\n" - " \\____/| .__/ \\___|_| |_|_____/|____/_____|\n" - " | |\n" - " |_|\n"; +#define BANNER \ + " ____ _____ ____ _____\n" \ + " / __ \\ / ____| _ \\_ _|\n" \ + " | | | |_ __ ___ _ __ | (___ | |_) || |\n" \ + " | | | | '_ \\ / _ \\ '_ \\ \\___ \\| _ < | |\n" \ + " | |__| | |_) | __/ | | |____) | |_) || |_\n" \ + " \\____/| .__/ \\___|_| |_|_____/|____/_____|\n" \ + " | |\n" \ + " |_|\n\n" 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(); 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, __DATE__, __TIME__); - sbi_printf("%s\n", logo); + sbi_printf(BANNER); /* Platform details */ sbi_printf("Platform Name : %s\n", sbi_platform_name(plat));