Commit 36676037 authored by paul luse's avatar paul luse Committed by Tomasz Zawadzki
Browse files

examples/accel perf: fix small issue with params



Need to check that a valid workload type was specified and print
usage if not.

Signed-off-by: default avatarpaul luse <paul.e.luse@intel.com>
Change-Id: Ib956e28f9049e49f19adcc09e861db42034799b8
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1900


Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 1d141f4a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -386,8 +386,9 @@ main(int argc, char **argv)
		goto cleanup;
	}

	if (strcmp(g_workload_type, "copy") &&
	    strcmp(g_workload_type, "fill")) {
	if (g_workload_type == NULL ||
	    (strcmp(g_workload_type, "copy") &&
	     strcmp(g_workload_type, "fill"))) {
		usage();
		rc = -1;
		goto cleanup;