opensbi-unstable/0001-Revert-lib-Remove-date...

33 lines
1.0 KiB
Diff

From 2a032b5f52b87ec643f19bfd017375d43280fa1b Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Thu, 5 Dec 2019 16:00:57 +0000
Subject: [PATCH] Revert "lib: Remove date and time from init message"
This reverts commit 215421ca610a64b8ec188c96ea8588ae2de41fb7.
---
lib/sbi/sbi_init.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c
index 51ce3a0..50a7632 100644
--- a/lib/sbi/sbi_init.c
+++ b/lib/sbi/sbi_init.c
@@ -35,10 +35,11 @@ static void sbi_boot_prints(struct sbi_scratch *scratch, u32 hartid)
const struct sbi_platform *plat = sbi_platform_ptr(scratch);
#ifdef OPENSBI_VERSION_GIT
- sbi_printf("\nOpenSBI %s\n", OPENSBI_VERSION_GIT);
+ sbi_printf("\nOpenSBI %s (%s %s)\n", OPENSBI_VERSION_GIT,
+ __DATE__, __TIME__);
#else
- sbi_printf("\nOpenSBI v%d.%d\n", OPENSBI_VERSION_MAJOR,
- OPENSBI_VERSION_MINOR);
+ sbi_printf("\nOpenSBI v%d.%d (%s %s)\n", OPENSBI_VERSION_MAJOR,
+ OPENSBI_VERSION_MINOR, __DATE__, __TIME__);
#endif
sbi_printf(BANNER);
--
2.24.0