Spdk/examples
Daniel Verkamp 7b4bc2a243 nvme/identify: print ASCII strings with helper
SN, MN, and FR are ASCII strings as defined by the NVMe spec; use the
new print_ascii_string() helper function to print them.  This trims the
trailing spaces and prevents accidentally printing any control
characters to the screen if the device provides an invalid ASCII string.

Change-Id: Ifaf383a79e13be62625250e7e79a305ebaa3612b
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/405926
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-04-02 15:44:35 -04:00
..
bdev examples/fio_plugin: add --spdk_single_seg option 2018-03-30 16:43:53 -04:00
blob lib: Return instead of exit in event 2018-03-08 11:47:01 -05:00
ioat examples/kmod: add cache.mk to git ignore 2018-03-15 20:50:04 -04:00
nvme nvme/identify: print ASCII strings with helper 2018-04-02 15:44:35 -04:00
Makefile examples: blobstore hello world 2017-08-11 13:17:11 -04:00