From: Jens Axboe Date: Wed, 24 Sep 2014 15:54:24 +0000 (-0600) Subject: Fix compile for FIO_INC_DEBUG not set X-Git-Tag: fio-2.1.13~42 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b5b571a3f01c17ddb39fd0306cb425a11e216f3d;p=fio.git Fix compile for FIO_INC_DEBUG not set Signed-off-by: Jens Axboe --- 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;