Message ID | 20170515082050.304-3-oohall@gmail.com |
---|---|
State | Accepted |
Headers | show |
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); } /*
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@gmail.com> --- hdata/test/stubs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)