summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-02-26 13:54:20 +0100
committerJens Axboe <axboe@kernel.dk>2013-02-26 13:55:43 +0100
commit0f78b22cb13d2e59b134ee80bafa669679504bd6 (patch)
tree3f083791090ef928b2ffad96df9aa266fd1676dc /gettime.c
parent985ee30c1c9b61c834b38e2fbd13d0a19797602e (diff)
downloadfio-0f78b22cb13d2e59b134ee80bafa669679504bd6.tar.gz
fio-0f78b22cb13d2e59b134ee80bafa669679504bd6.tar.bz2
gettime: print 64-bit variable with ULL
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'gettime.c')
-rw-r--r--gettime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gettime.c b/gettime.c
index 660ba4c8..4c998e5f 100644
--- a/gettime.c
+++ b/gettime.c
@@ -497,7 +497,8 @@ static void *clock_thread_fn(void *data)
c->tsc = tsc;
}
- log_info("cs: cpu%3d: %lu clocks seen\n", t->cpu, t->entries[i - 1].tsc - t->entries[0].tsc);
+ log_info("cs: cpu%3d: %llu clocks seen\n", t->cpu,
+ (unsigned long long) t->entries[i - 1].tsc - t->entries[0].tsc);
/*
* The most common platform clock breakage is returning zero