diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-11 16:31:01 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-11 16:47:22 +1100 |
commit | 6dc84bb65a3f51b97d2728a8fcdadacf8114293f (patch) | |
tree | 162ceb635aa6fc6edc221eff734c54a2ac8a564c /hdata/test/stubs.c | |
parent | 27b49826e5f1d9c0008c0a5bf0953dd673a9b9e1 (diff) | |
download | skiboot-6dc84bb65a3f51b97d2728a8fcdadacf8114293f.zip skiboot-6dc84bb65a3f51b97d2728a8fcdadacf8114293f.tar.gz skiboot-6dc84bb65a3f51b97d2728a8fcdadacf8114293f.tar.bz2 |
Add hdata_to_dt test
This adds ~1000 lines of code to the coverage-report.
We manipulate the log levels of a few messages that contain pointers
so that a basic diff of the hdata_to_dt output is possible.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/test/stubs.c')
-rw-r--r-- | hdata/test/stubs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c index 6ad2255..e72b683 100644 --- a/hdata/test/stubs.c +++ b/hdata/test/stubs.c @@ -29,7 +29,8 @@ void _prlog(int log_level __attribute__((unused)), const char* fmt, ...) va_list ap; va_start(ap, fmt); - vprintf(fmt, ap); + if (log_level < 7) + vprintf(fmt, ap); va_end(ap); } |