Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

testing/vsock: print list of options and description

Since we now have several options, in the help we print the list
of all supported options and a brief description of them.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stefano Garzarella and committed by
David S. Miller
8d00b93f 5a2b2425

+24 -2
+12 -1
tools/testing/vsock/vsock_diag_test.c
··· 497 497 "listen address and the client requires an address to\n" 498 498 "connect to.\n" 499 499 "\n" 500 - "The CID of the other side must be given with --peer-cid=<cid>.\n"); 500 + "The CID of the other side must be given with --peer-cid=<cid>.\n" 501 + "\n" 502 + "Options:\n" 503 + " --help This help message\n" 504 + " --control-host <host> Server IP address to connect to\n" 505 + " --control-port <port> Server port to listen on/connect to\n" 506 + " --mode client|server Server or client mode\n" 507 + " --peer-cid <cid> CID of the other side\n" 508 + " --list List of tests that will be executed\n" 509 + " --skip <test_id> Test ID to skip;\n" 510 + " use multiple --skip options to skip more tests\n" 511 + ); 501 512 exit(EXIT_FAILURE); 502 513 } 503 514
+12 -1
tools/testing/vsock/vsock_test.c
··· 257 257 "listen address and the client requires an address to\n" 258 258 "connect to.\n" 259 259 "\n" 260 - "The CID of the other side must be given with --peer-cid=<cid>.\n"); 260 + "The CID of the other side must be given with --peer-cid=<cid>.\n" 261 + "\n" 262 + "Options:\n" 263 + " --help This help message\n" 264 + " --control-host <host> Server IP address to connect to\n" 265 + " --control-port <port> Server port to listen on/connect to\n" 266 + " --mode client|server Server or client mode\n" 267 + " --peer-cid <cid> CID of the other side\n" 268 + " --list List of tests that will be executed\n" 269 + " --skip <test_id> Test ID to skip;\n" 270 + " use multiple --skip options to skip more tests\n" 271 + ); 261 272 exit(EXIT_FAILURE); 262 273 } 263 274