summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-02-23 16:50:44 -0700
committerJens Axboe <axboe@kernel.dk>2022-02-23 16:50:44 -0700
commit8a2e43dad6475cfcecf91d79e3c4ed58bb5298e1 (patch)
tree1bcc0995ee1aafd5a6daa7ccc4b1c30db41d8d80
parent57352019dd1faa77c2c3b6bf689217207d649560 (diff)
downloadliburing-8a2e43dad6475cfcecf91d79e3c4ed58bb5298e1.tar.gz
liburing-8a2e43dad6475cfcecf91d79e3c4ed58bb5298e1.tar.bz2
test/fpos: fix for 32-bit compiles
Fixes: 57352019dd1f ("Test consistent file position updates") Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/fpos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fpos.c b/test/fpos.c
index 40df613..385db63 100644
--- a/test/fpos.c
+++ b/test/fpos.c
@@ -127,7 +127,7 @@ static int test_read(struct io_uring *ring, bool async, bool link,
if (current < expected || (current != expected && link)) {
/* accept that with !link current may be > expected */
fprintf(stderr, "f_pos incorrect, expected %ld have %ld\n",
- expected, current);
+ (long) expected, (long) current);
ret = -1;
}
if (ret)
@@ -193,7 +193,7 @@ static int test_write(struct io_uring *ring, bool async,
current = lseek(fd, 0, SEEK_CUR);
if (current != QUEUE_SIZE) {
fprintf(stderr, "f_pos incorrect, expected %ld have %d\n",
- current, QUEUE_SIZE);
+ (long) current, QUEUE_SIZE);
fail = true;
}
current = lseek(fd, 0, SEEK_SET);