src/locktest: Add get_cmd_str
authorIra Weiny <ira.weiny@intel.com>
Mon, 23 Sep 2019 17:53:24 +0000 (10:53 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Oct 2019 11:00:38 +0000 (19:00 +0800)
commita5f4ca19e6560abacd0e4313275ffaa5eec13864
tree2dc8ac71caceabb5652ed6eaecbed70947d3838f
parent4d5f16cf639b75be9d30ea1f334566211ed14432
src/locktest: Add get_cmd_str

Rather than open code printing the strings, use a helper function.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/locktest.c