]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
get-telemtry-log: Print nvme status in case err > 0
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 25 Apr 2019 13:53:01 +0000 (22:53 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 25 Apr 2019 13:53:01 +0000 (22:53 +0900)
commited6653d601f1d51e4582470603273c12e20a87e9
tree9cbf6ac2d7f3fb0bc74050032643a47aa0d2f53e
parent17a4bc08b76dc32df551b6caaab8b7aafc502f4b
get-telemtry-log: Print nvme status in case err > 0

If given 'err' is negative, then it's an internal error so that it needs
to be with perror().  If it's positive, then we can print nvme status
out.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme.c