diff --git a/libcpuid/rdtsc.c b/libcpuid/rdtsc.c index a13d983..5930681 100644 --- a/libcpuid/rdtsc.c +++ b/libcpuid/rdtsc.c @@ -275,7 +275,7 @@ int cpu_clock_by_ic(int millis, int runs) sys_precise_clock(&t1); } while (t1 - t0 < tl * (uint64_t) 8); // cpu_Hz = cycles_inner * cycles_outer * 256 / (t1 - t0) * 1000000 - debugf(2, "c = %d, td = %llu\n", c, t1 - t0); + debugf(2, "c = %d, td = %d\n", c, (int) (t1 - t0)); hz = ((uint64_t) cycles_inner * (uint64_t) 256 + 12) * (uint64_t) cycles_outer * (uint64_t) multiplier_numerator * (uint64_t) c * (uint64_t) 1000000 / ((t1 - t0) * (uint64_t) multiplier_denom);