diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-11-09 22:35:35 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-11-09 22:35:35 +1100 |
commit | 450a29d1bcd54ebbcdfd973f5792e0bf04de2f7f (patch) | |
tree | e5deb321c3a8091dd1b8f5f4b5c11cbf82d5fc77 /examples | |
parent | 04faa7f24e3145f76cf8b79f76c8d9dc6437d86b (diff) | |
download | mongo-450a29d1bcd54ebbcdfd973f5792e0bf04de2f7f.tar.gz |
When verbose == 2, copy status output to stdout.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/ex_test_perf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/c/ex_test_perf.c b/examples/c/ex_test_perf.c index cc1817d9b64..d729dcc567d 100644 --- a/examples/c/ex_test_perf.c +++ b/examples/c/ex_test_perf.c @@ -777,6 +777,13 @@ int lprintf(CONFIG *cfg, int err, uint32_t level, const char *fmt, ...) vfprintf(cfg->logf, fmt, ap); va_end(ap); fprintf(cfg->logf, "\n"); + + if (level < cfg->verbose) { + va_start(ap, fmt); + vprintf(fmt, ap); + va_end(ap); + printf("\n"); + } } if (err == 0) return (0); |