From: Ming Lei Date: Mon, 3 Mar 2025 12:43:14 +0000 (+0800) Subject: selftests: ublk: fix parsing '-a' argument X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5b2db7a8c7e4cb0715d7eb04182aca8ee1eb30d5;p=users%2Fjedix%2Flinux-maple.git selftests: ublk: fix parsing '-a' argument 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 Reviewed-by: Keith Busch Link: https://lore.kernel.org/r/20250303124324.3563605-5-ming.lei@redhat.com Signed-off-by: Jens Axboe --- diff --git a/tools/testing/selftests/ublk/kublk.c b/tools/testing/selftests/ublk/kublk.c index 24557a3e5508..148355717ee7 100644 --- a/tools/testing/selftests/ublk/kublk.c +++ b/tools/testing/selftests/ublk/kublk.c @@ -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':