diff options
Diffstat (limited to 'examples/link-cp.c')
-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; |