From 1982bfd44dc3b4b6dad7885fbf708d2bf1dc7ebf Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 14 May 2019 19:08:37 -0600 Subject: Add chain failure handling test case Signed-off-by: Jens Axboe --- examples/link-cp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') 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; -- cgit