aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-02-13 13:20:50 -0700
committerJens Axboe <axboe@kernel.dk>2024-02-13 13:20:50 -0700
commita80a4a4aa73a30d4840be7df089fba82f97e329f (patch)
treec97da1d8256955f89e4a6868a482961cea1896b7
parentf868836a8c390b7f008343aebb50fc0bab2886af (diff)
downloadliburing-a80a4a4aa73a30d4840be7df089fba82f97e329f.tar.gz
test/truncate: use correct size cast for printing file sizes
Fixes: f868836a8c39 ("test/truncate: cleanup and fix spurious failures") Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/truncate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/truncate.c b/test/truncate.c
index 2d620ee3..d12c3dd6 100644
--- a/test/truncate.c
+++ b/test/truncate.c
@@ -164,8 +164,9 @@ int main(int argc, char *argv[])
if (get_file_size(fd, &size))
goto err;
if (size != test_sizes[i]) {
- fprintf(stderr, "fail %d size=%lu, %lu\n", i, size,
- test_sizes[i]);
+ fprintf(stderr, "fail %d size=%llu, %llu\n", i,
+ (unsigned long long) size,
+ (unsigned long long) test_sizes[i]);
goto err;
}
}