gettime: print 64-bit variable with ULL
authorJens Axboe <axboe@kernel.dk>
Tue, 26 Feb 2013 12:54:20 +0000 (13:54 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Feb 2013 12:55:43 +0000 (13:55 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gettime.c

index 660ba4c8864ddfbe1147fe84eb213e1309462bad..4c998e5ff89f1dc72503f01f2552cdde78538437 100644 (file)
--- 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