summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-11-14 12:04:25 -0700
committerJens Axboe <axboe@kernel.dk>2019-11-14 12:04:25 -0700
commit624333413172787ca7d18b1d0cc18c9196ca68d3 (patch)
tree3be88353f0dbc652765de1ac4aea06ccbebdd282
parent4d881435fdd7e4cd9212a3580fcd0524c2bebca1 (diff)
downloadliburing-624333413172787ca7d18b1d0cc18c9196ca68d3.tar.gz
liburing-624333413172787ca7d18b1d0cc18c9196ca68d3.tar.bz2
test/fixed-link: fix transposed error arguments
Wanted vs got, arguments were mixed up. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/fixed-link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fixed-link.c b/test/fixed-link.c
index b9428db..2ae7a59 100644
--- a/test/fixed-link.c
+++ b/test/fixed-link.c
@@ -69,8 +69,8 @@ int main(int argc, char *argv[])
return 1;
}
if (cqe->res != iovecs[i].iov_len) {
- fprintf(stderr, "read: wanted %d, got %ld\n", cqe->res,
- (long) iovecs[i].iov_len);
+ fprintf(stderr, "read: wanted %ld, got %d\n",
+ (long) iovecs[i].iov_len, cqe->res);
return 1;
}
io_uring_cqe_seen(&ring, cqe);