Replace obscure v1-v6 with more readable flag names. Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> --- test/read-write.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/test/read-write.c b/test/read-write.c index 3bea26f..d47bebb 100644 --- a/test/read-write.c +++ b/test/read-write.c @@ -696,18 +696,19 @@ int main(int argc, char *argv[]) nr = 32; for (i = 0; i < nr; i++) { - int v1, v2, v3, v4, v5, v6; - - v1 = (i & 1) != 0; - v2 = (i & 2) != 0; - v3 = (i & 4) != 0; - v4 = (i & 8) != 0; - v5 = (i & 16) != 0; - v6 = (i & 32) != 0; - ret = test_io(fname, v1, v2, v3, v4, v5, v6); + int write = (i & 1) != 0; + int buffered = (i & 2) != 0; + int sqthread = (i & 4) != 0; + int fixed = (i & 8) != 0; + int mixed_fixed = (i & 16) != 0; + int nonvec = (i & 32) != 0; + + ret = test_io(fname, write, buffered, sqthread, fixed, + mixed_fixed, nonvec); if (ret) { fprintf(stderr, "test_io failed %d/%d/%d/%d/%d/%d\n", - v1, v2, v3, v4, v5, v6); + write, buffered, sqthread, fixed, + mixed_fixed, nonvec); goto err; } } -- 2.24.0