summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-02-25 10:18:33 +0100
committerJens Axboe <axboe@kernel.dk>2013-02-25 10:18:33 +0100
commit4b91ee8fd12c72bd76ce9f5ff9116626b48566a0 (patch)
treedd0ebbcd3ea71a56ec5363dc454bd16852b110e5 /gettime.c
parente259879ea353f5695a8be662b2748c4f4d0918d9 (diff)
downloadfio-4b91ee8fd12c72bd76ce9f5ff9116626b48566a0.tar.gz
fio-4b91ee8fd12c72bd76ce9f5ff9116626b48566a0.tar.bz2
Fixup wrong types for dprint()
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'gettime.c')
-rw-r--r--gettime.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gettime.c b/gettime.c
index d56045c5..352c1d3d 100644
--- a/gettime.c
+++ b/gettime.c
@@ -302,11 +302,12 @@ static int calibrate_cpu_clock(void)
mean /= 10.0;
for (i = 0; i < NR_TIME_ITERS; i++)
- dprint(FD_TIME, "cycles[%d]=%lu\n", i, cycles[i] / 10);
+ dprint(FD_TIME, "cycles[%d]=%llu\n", i,
+ (unsigned long long) cycles[i] / 10);
avg /= samples;
avg = (avg + 5) / 10;
- dprint(FD_TIME, "avg: %lu\n", avg);
+ dprint(FD_TIME, "avg: %llu\n", (unsigned long long) avg);
dprint(FD_TIME, "mean=%f, S=%f\n", mean, S);
cycles_per_usec = avg;