diff options
| author | 2025-03-03 20:43:14 +0800 | |
|---|---|---|
| committer | 2025-03-10 16:24:18 -0600 | |
| commit | 5b2db7a8c7e4cb0715d7eb04182aca8ee1eb30d5 (patch) | |
| tree | 8f7d9f98a6a194f697c389623b3f6612ae7db2d7 | |
| parent | selftests: ublk: add --foreground command line (diff) | |
| download | linux-rng-5b2db7a8c7e4cb0715d7eb04182aca8ee1eb30d5.tar.xz linux-rng-5b2db7a8c7e4cb0715d7eb04182aca8ee1eb30d5.zip | |
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 <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>
| -rw-r--r-- | tools/testing/selftests/ublk/kublk.c | 2 |
1 files changed, 1 insertions, 1 deletions
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': |
