[Skiboot] [PATCH 2/2] Add -debug to version on DEBUG builds

Stewart Smith stewart at linux.vnet.ibm.com
Tue Feb 20 17:08:15 AEDT 2018


Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 core/init.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/init.c b/core/init.c
index 5736d3308a74..02094bf60fd1 100644
--- a/core/init.c
+++ b/core/init.c
@@ -833,7 +833,13 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt)
 	/* Call library constructors */
 	do_ctors();
 
-	prlog(PR_NOTICE, "OPAL %s starting...\n", version);
+	prlog(PR_NOTICE, "OPAL %s%s starting...\n", version,
+#ifdef DEBUG
+	"-debug"
+#else
+	""
+#endif
+	);
 	prlog(PR_DEBUG, "initial console log level: memory %d, driver %d\n",
 	       (debug_descriptor.console_log_levels >> 4),
 	       (debug_descriptor.console_log_levels & 0x0f));
-- 
2.14.3



More information about the Skiboot mailing list