summaryrefslogtreecommitdiff
path: root/test/stdout.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stdout.c')
-rw-r--r--test/stdout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/stdout.c b/test/stdout.c
index 7b64c8c..b12d75c 100644
--- a/test/stdout.c
+++ b/test/stdout.c
@@ -28,12 +28,12 @@ static int test_pipe_io(struct io_uring *ring)
io_uring_prep_writev(sqe, STDOUT_FILENO, &vecs, 1, 0);
ret = io_uring_submit(ring);
- if (ret < 1) {
- printf("Submitted only %d\n", ret);
- goto err;
- } else if (ret < 0) {
+ if (ret < 0) {
printf("sqe submit failed: %d\n", ret);
goto err;
+ } else if (ret < 1) {
+ printf("Submitted only %d\n", ret);
+ goto err;
}
ret = io_uring_wait_cqe(ring, &cqe);