app: Fix the wrong order of usage of command line options.

I add the usage comment for -u option into the middle of -s option
by mistake.

Change-Id: Iee013122f9bf3b58969c3ff14b0cc5b079f125a3
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/408595
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Shuhei Matsumoto 2018-04-23 09:11:55 +09:00 committed by Daniel Verkamp
parent fc0dc65adc
commit df8a61c253

View File

@ -546,12 +546,12 @@ usage(char *executable_name, struct spdk_app_opts *default_opts, void (*app_usag
printf(" -q disable notice level logging to stderr\n"); printf(" -q disable notice level logging to stderr\n");
printf(" -r RPC listen address (default %s)\n", SPDK_DEFAULT_RPC_ADDR); printf(" -r RPC listen address (default %s)\n", SPDK_DEFAULT_RPC_ADDR);
printf(" -s size memory size in MB for DPDK (default: "); printf(" -s size memory size in MB for DPDK (default: ");
printf(" -u disable PCI access.\n");
if (default_opts->mem_size > 0) { if (default_opts->mem_size > 0) {
printf("%dMB)\n", default_opts->mem_size); printf("%dMB)\n", default_opts->mem_size);
} else { } else {
printf("all hugepage memory)\n"); printf("all hugepage memory)\n");
} }
printf(" -u disable PCI access.\n");
spdk_tracelog_usage(stdout, "-t"); spdk_tracelog_usage(stdout, "-t");
app_usage(); app_usage();
} }