diff mbox series

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

Message ID 20180220060815.19303-2-stewart@linux.vnet.ibm.com
State Accepted
Headers show
Series [1/2] cpu_wait_job: Correctly report time spent waiting for job | expand

Commit Message

Stewart Smith Feb. 20, 2018, 6:08 a.m. UTC
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 core/init.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

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));