summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2017-03-02 14:53:17 -0800
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-03-06 16:22:23 -0500
commitfe8964b42bf038efcb5ef0862969d9cb46c0c953 (patch)
treea5b169a5a3a1cb4ed84a9a8c444d5202b46d0112 /src/usr
parentf9be3fe552896708549038d66f1df3c62e953249 (diff)
downloadtalos-hostboot-fe8964b42bf038efcb5ef0862969d9cb46c0c953.tar.gz
talos-hostboot-fe8964b42bf038efcb5ef0862969d9cb46c0c953.zip
hostboot: Add a printed out banner add startup
This better clarifies the ImageId immediately to the end user. Resolves #90 Signed-off-by: William A. Kennington III <wak@google.com> Change-Id: Ieab56b9d1902aebbbf9f4f093f0a4a13c41d81f7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37457 Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/console/daemon.C13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/usr/console/daemon.C b/src/usr/console/daemon.C
index a501920ff..b51122561 100644
--- a/src/usr/console/daemon.C
+++ b/src/usr/console/daemon.C
@@ -5,9 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014 */
-/* [+] International Business Machines Corp. */
+/* Contributors Listed Below - COPYRIGHT 2014,2017 */
/* [+] Google Inc. */
+/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
@@ -32,6 +32,8 @@
#include "uart.H"
#include "daemon.H"
+extern char hbi_ImageId[];
+
namespace CONSOLE
{
extern msg_q_t g_msgq;
@@ -70,6 +72,13 @@ namespace CONSOLE
Uart::g_device->initialize();
}
+ // Display a banner denoting the hostboot version
+ char banner[256];
+ snprintf(banner, sizeof(banner),
+ "\n\n--== Welcome to Hostboot %s ==--\n\n",
+ hbi_ImageId);
+ _display(banner);
+
while(1)
{
msg_t* msg = msg_wait(g_msgq);
OpenPOWER on IntegriCloud