From 35268e11059f48c31462b02ac89f443a68919a77 Mon Sep 17 00:00:00 2001 From: Andrzej Jakowski Date: Tue, 7 Sep 2021 21:10:44 -0700 Subject: [PATCH] t/io_uring: fixes in output Provide description of available options in usage command and fix alignment so they look pretty. Also remove debug output. Signed-off-by: Andrzej Jakowski Signed-off-by: Jens Axboe --- t/io_uring.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/t/io_uring.c b/t/io_uring.c index 3130e469..28c76b02 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -539,12 +539,16 @@ static void file_depths(char *buf) static void usage(char *argv) { printf("%s [options] -- [filenames]\n" - " -d : IO Depth, default %d\n" - " -s : Batch submit, default %d\n" - " -c : Batch complete, default %d\n" - " -b : Block size, default %d\n" - " -p : Polled IO, default %d\n", - argv, DEPTH, BATCH_SUBMIT, BATCH_COMPLETE, BS, polled); + " -d : IO Depth, default %d\n" + " -s : Batch submit, default %d\n" + " -c : Batch complete, default %d\n" + " -b : Block size, default %d\n" + " -p : Polled IO, default %d\n" + " -B : Fixed buffers, default %d\n" + " -F : Register files, default %d\n" + " -n : Number of threads, default %d\n", + argv, DEPTH, BATCH_SUBMIT, BATCH_COMPLETE, BS, polled, + fixedbufs, register_files, nthreads); exit(0); } @@ -609,7 +613,6 @@ int main(int argc, char *argv[]) j = 0; i = optind; - printf("i %d, argc %d\n", i, argc); while (!do_nop && i < argc) { struct file *f; -- 2.25.1