summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2019-01-18 07:18:25 +0300
committerAnup Patel <anup@brainfault.org>2019-01-21 07:28:33 +0300
commit6939d345ab3f7c5360a7de3fb0000a9da5096f97 (patch)
tree0a8253c9b2f8f0477e646f0801777dc39c6a15c8 /lib
parentac3041f4e906ee75d423ac788803218db51ef343 (diff)
downloadopensbi-6939d345ab3f7c5360a7de3fb0000a9da5096f97.tar.xz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi_init.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/sbi_init.c b/lib/sbi_init.c
index b92c1fd..1f1103c 100644
--- a/lib/sbi_init.c
+++ b/lib/sbi_init.c
@@ -17,15 +17,15 @@
#include <sbi/sbi_system.h>
#include <sbi/sbi_timer.h>
-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));