[Skiboot] [PATCH 3/3] hdata_to_dt: Output up to PR_DEBUG

Oliver O'Halloran oohall at gmail.com
Mon May 15 18:20:50 AEST 2017


A lot of stuff that is useful for debugging and general sanity checking
of the HDAT parser is only printed at PR_DEBUG. Bump up the log level
for hdata_to_dt so that more of this is output by default. The actual
test cases only look at the DTS output so there's no harm in being
verbose.

Clean up the space indentation while we're here.

Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
---
 hdata/test/stubs.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c
index 8bbc68b51500..0777730f418c 100644
--- a/hdata/test/stubs.c
+++ b/hdata/test/stubs.c
@@ -34,12 +34,12 @@ void _prlog(int log_level __attribute__((unused)), const char* fmt, ...) __attri
 
 void _prlog(int log_level __attribute__((unused)), const char* fmt, ...)
 {
-        va_list ap;
+	va_list ap;
 
-        va_start(ap, fmt);
-        if (log_level < 7)
+	va_start(ap, fmt);
+	if (log_level <= 7)
 		vfprintf(stderr, fmt, ap);
-        va_end(ap);
+	va_end(ap);
 }
 
 /*
-- 
2.9.3



More information about the Skiboot mailing list