bdevperf: print app-specific usage strings on failure
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ieaf1963442a193843873d6b7ca3c96cd1e27c358 Reviewed-on: https://review.gerrithub.io/424275 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
86d77e2eb6
commit
828008f184
@ -883,18 +883,22 @@ main(int argc, char **argv)
|
||||
|
||||
if (g_queue_depth <= 0) {
|
||||
spdk_app_usage();
|
||||
bdevperf_usage();
|
||||
exit(1);
|
||||
}
|
||||
if (g_io_size <= 0) {
|
||||
spdk_app_usage();
|
||||
bdevperf_usage();
|
||||
exit(1);
|
||||
}
|
||||
if (!g_workload_type) {
|
||||
spdk_app_usage();
|
||||
bdevperf_usage();
|
||||
exit(1);
|
||||
}
|
||||
if (g_time_in_sec <= 0) {
|
||||
spdk_app_usage();
|
||||
bdevperf_usage();
|
||||
exit(1);
|
||||
}
|
||||
g_time_in_usec = g_time_in_sec * 1000000LL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user