]> www.infradead.org Git - users/hch/nvme-cli.git/commit
id-ctrl: remove new lines from json output
authorKeith Busch <keith.busch@intel.com>
Fri, 5 May 2017 20:07:16 +0000 (14:07 -0600)
committerKeith Busch <keith.busch@intel.com>
Fri, 5 May 2017 20:08:45 +0000 (14:08 -0600)
commit6d2f0c827f7b3d6283ba4b14ab0ba5382380993d
treea97f3509c753152a537edee2e88de47ed41ad12a
parentca0f53ee3ee83da28d9aa73a3185a9cc8a4b80b1
id-ctrl: remove new lines from json output

This patch removes the ending newlines from json strings, and skips
printing the optional subsysnqn if the controller does not implement it.

Reported-by: Krishna Dhulipala <krishnad@fb.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme-print.c