summaryrefslogtreecommitdiff
path: root/test/nop.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nop.c')
-rw-r--r--test/nop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/nop.c b/test/nop.c
index 1373695..4b072fc 100644
--- a/test/nop.c
+++ b/test/nop.c
@@ -62,12 +62,12 @@ static int test_barrier_nop(struct io_uring *ring)
}
ret = io_uring_submit(ring);
- if (ret < 8) {
- 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 < 8) {
+ printf("Submitted only %d\n", ret);
+ goto err;
}
for (i = 0; i < 8; i++) {