aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2019-07-18 16:51:09 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-07-19 17:45:50 +1000
commit2c256c6803f79dd64c5b631ef3da26942eeeca10 (patch)
tree8052a6bec09e606258188729015191a038e8b05d /core
parent648c7cfd4c0d94a17a51a94afc5f7da60b7b2898 (diff)
downloadskiboot-2c256c6803f79dd64c5b631ef3da26942eeeca10.zip
skiboot-2c256c6803f79dd64c5b631ef3da26942eeeca10.tar.gz
skiboot-2c256c6803f79dd64c5b631ef3da26942eeeca10.tar.bz2
sparse: Silence "directive in argument list" for version string
core/init.c:966:1: error: directive in argument list core/init.c:968:1: error: directive in argument list core/init.c:970:1: error: directive in argument list Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/init.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/core/init.c b/core/init.c
index c99302c..e3e0ea3 100644
--- a/core/init.c
+++ b/core/init.c
@@ -66,6 +66,12 @@ static bool kernel_32bit;
/* We backup the previous vectors here before copying our own */
static uint8_t old_vectors[EXCEPTION_VECTORS_END];
+#ifdef DEBUG
+#define DEBUG_STR "-debug"
+#else
+#define DEBUG_STR ""
+#endif
+
#ifdef SKIBOOT_GCOV
void skiboot_gcov_done(void);
#endif
@@ -962,13 +968,8 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt)
/* Call library constructors */
do_ctors();
- prlog(PR_NOTICE, "OPAL %s%s starting...\n", version,
-#ifdef DEBUG
- "-debug"
-#else
- ""
-#endif
- );
+ prlog(PR_NOTICE, "OPAL %s%s starting...\n", version, DEBUG_STR);
+
prlog(PR_DEBUG, "initial console log level: memory %d, driver %d\n",
(debug_descriptor.console_log_levels >> 4),
(debug_descriptor.console_log_levels & 0x0f));