diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-05-14 19:08:37 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-05-14 19:08:37 -0600 |
commit | 1982bfd44dc3b4b6dad7885fbf708d2bf1dc7ebf (patch) | |
tree | 26354cbe073f753ad58f45c6126054dd5bb0bbbc /examples | |
parent | 0ba9503f793647bfd967da8083a2adf56621307c (diff) |
Add chain failure handling test case
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/link-cp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/link-cp.c b/examples/link-cp.c index c747966..993d3a6 100644 --- a/examples/link-cp.c +++ b/examples/link-cp.c @@ -82,6 +82,9 @@ static void handle_cqe(struct io_uring_cqe *cqe) { struct io_data *data; + if (cqe->res < 0) + printf("cqe error: %s\n", strerror(cqe->res)); + data = io_uring_cqe_get_data(cqe); if (!data) return; |