numam-spdk/examples/nvme
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
..
arbitration lib: Return instead of exit/abort in env_dpdk 2018-01-10 16:20:15 -05:00
cmb_copy cmb_copy: An example app that uses NVMe CMBs 2018-02-14 12:36:01 -05:00
fio_plugin scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
hello_world hello_world: If supported, use CMB WDS buffer 2018-02-12 19:11:44 -05:00
hotplug lib: Return instead of exit/abort in env_dpdk 2018-01-10 16:20:15 -05:00
identify nvme/identify: print ASCII strings with helper 2018-04-02 15:44:35 -04:00
nvme_manage scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
perf nvme/perf: remove PCI ID print in probe_cb 2018-03-29 01:46:43 -04:00
reserve nvme: use uint32_t consistently for NSID values 2018-03-16 14:15:08 -04:00
Makefile cmb_copy: An example app that uses NVMe CMBs 2018-02-14 12:36:01 -05:00