]> www.infradead.org Git - users/hch/nvme-cli.git/commit
Fix right trim() in JSON output
authorAaron Miller <aaronmiller@fb.com>
Fri, 9 Dec 2016 23:38:35 +0000 (15:38 -0800)
committerAaron Miller <aaronmiller@fb.com>
Fri, 9 Dec 2016 23:54:00 +0000 (15:54 -0800)
commit6331b1466488d88a56e94d76a37852fbbc12d46d
treeba1b7b3b3d028023735cb80d0435c982f5c8a29b
parent9b35380a59fa9908490f8b64340c698a4a9b44b6
Fix right trim() in JSON output

Was always trimming from the end of the format buffer, not the end of
the snprintf output. Also need to remove the initial decrement as
snprintf will leave fmt_sz pointing at the terminating NUL.
nvme-print.c