t/io_uring: improve EOPNOTSUPP message
authorJens Axboe <axboe@kernel.dk>
Thu, 9 May 2019 15:56:29 +0000 (09:56 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 May 2019 15:56:29 +0000 (09:56 -0600)
Put in one line and include kernel as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c

index 208b58a50a8d6b39e2e05dc0c26fce94ad7e8479..62dee8058a5922b673a4e5c92c65add6735f4574 100644 (file)
@@ -264,8 +264,7 @@ static int reap_events(struct submitter *s)
                        if (cqe->res != BS) {
                                printf("io: unexpected ret=%d\n", cqe->res);
                                if (polled && cqe->res == -EOPNOTSUPP)
                        if (cqe->res != BS) {
                                printf("io: unexpected ret=%d\n", cqe->res);
                                if (polled && cqe->res == -EOPNOTSUPP)
-                                       printf("Your filesystem/device doesn't "
-                                               "support polled IO\n");
+                                       printf("Your filesystem/driver/kernel doesn't support polled IO\n");
                                return -1;
                        }
                }
                                return -1;
                        }
                }