From b5b571a3f01c17ddb39fd0306cb425a11e216f3d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 24 Sep 2014 09:54:24 -0600 Subject: [PATCH] Fix compile for FIO_INC_DEBUG not set Signed-off-by: Jens Axboe --- gettime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gettime.c b/gettime.c index fa750ec8..8a139239 100644 --- 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; -- 2.25.1