| 288 | struct io_uring_cqe *cqe); |
| 289 | |
| 290 | static int default_error(struct error_handler *err, |
| 291 | struct io_uring __attribute__((__unused__)) *ring, |
| 292 | struct io_uring_cqe *cqe) |
| 293 | { |
| 294 | struct conn *c = cqe_to_conn(cqe); |
| 295 | |
| 296 | fprintf(stderr, "%d: %s error %s\n", c->tid, err->name, strerror(-cqe->res)); |
| 297 | fprintf(stderr, "fd=%d, bid=%d\n", cqe_to_fd(cqe), cqe_to_bid(cqe)); |
| 298 | return 1; |
| 299 | } |
| 300 | |
| 301 | /* |
| 302 | * Move error handling out of the normal handling path, cleanly separating |
no test coverage detected