diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-05-15 18:20:50 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-16 15:41:35 +1000 |
commit | 30df6f03141efdf9d60c983ce3e7ef2403f904c2 (patch) | |
tree | 8e98243b3b37701903279d21c0b4b3f8d833c773 /hdata | |
parent | 89a5994118775450bef5bc7f09638b71cc8e49ec (diff) | |
download | skiboot-30df6f03141efdf9d60c983ce3e7ef2403f904c2.zip skiboot-30df6f03141efdf9d60c983ce3e7ef2403f904c2.tar.gz skiboot-30df6f03141efdf9d60c983ce3e7ef2403f904c2.tar.bz2 |
hdata_to_dt: Output up to PR_DEBUG
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>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/test/stubs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c index 8bbc68b..0777730 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); } /* |