]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
selftests: ublk: fix parsing '-a' argument
authorMing Lei <ming.lei@redhat.com>
Mon, 3 Mar 2025 12:43:14 +0000 (20:43 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Mar 2025 22:24:18 +0000 (16:24 -0600)
The argument of '-a' doesn't follow any value, so fix it by putting it
with '-z' together.

Fixes: bedc9cbc5f97 ("selftests: ublk: add ublk zero copy test")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20250303124324.3563605-5-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/kublk.c

index 24557a3e55082be3fbb688fc92e5390c7d5033ab..148355717ee723187955b0aa1ef631671b896716 100644 (file)
@@ -1068,7 +1068,7 @@ int main(int argc, char *argv[])
                return ret;
 
        optind = 2;
-       while ((opt = getopt_long(argc, argv, "t:n:d:q:a:z",
+       while ((opt = getopt_long(argc, argv, "t:n:d:q:az",
                                  longopts, &option_idx)) != -1) {
                switch (opt) {
                case 'a':