Fix compile for FIO_INC_DEBUG not set
authorJens Axboe <axboe@fb.com>
Wed, 24 Sep 2014 15:54:24 +0000 (09:54 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 24 Sep 2014 15:54:24 +0000 (09:54 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
gettime.c

index fa750ec85584716f7b6e37c5241130f8688dd6cb..8a1392392ab2ff3c92b8698c59fe79ea7cdd9adc 100644 (file)
--- a/gettime.c
+++ b/gettime.c
@@ -541,9 +541,13 @@ int fio_monotonic_clocktest(void)
 
        log_info("cs: reliable_tsc: %s\n", tsc_reliable ? "yes" : "no");
 
+#ifdef FIO_INC_DEBUG
        fio_debug |= 1U << FD_TIME;
+#endif
        calibrate_cpu_clock();
+#ifdef FIO_INC_DEBUG
        fio_debug &= ~(1U << FD_TIME);
+#endif
 
        threads = malloc(nr_cpus * sizeof(struct clock_thread));
        tentries = CLOCK_ENTRIES * nr_cpus;