[Skiboot] [PATCH 13/34] init: In debug builds, enable debug output to console
Benjamin Herrenschmidt
benh at kernel.crashing.org
Sun Jul 24 09:27:07 AEST 2016
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
core/init.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/core/init.c b/core/init.c
index 0a25d95..2106108 100644
--- a/core/init.c
+++ b/core/init.c
@@ -61,7 +61,11 @@ struct debug_descriptor debug_descriptor = {
.state_flags = 0,
.memcons_phys = (uint64_t)&memcons,
.trace_mask = 0, /* All traces disabled by default */
+#ifdef DEBUG
+ .console_log_levels = (PR_DEBUG << 4) | PR_DEBUG,
+#else
.console_log_levels = (PR_DEBUG << 4) | PR_NOTICE,
+#endif
};
static bool try_load_elf64_le(struct elf_hdr *header)
--
2.7.4
More information about the Skiboot
mailing list