Spdk/examples/nvme/identify
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
..
.gitignore SPDK: Initial check-in 2015-09-21 08:52:41 -07:00
identify.c nvme/identify: print ASCII strings with helper 2018-04-02 15:44:35 -04:00
Makefile build: create a common mk file for nvme library tests and examples 2016-11-22 11:45:47 -07:00