]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
sanitize: Print nvme status in case ret > 0
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 25 Apr 2019 13:57:44 +0000 (22:57 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 25 Apr 2019 13:57:44 +0000 (22:57 +0900)
commit525c253a6d0e71b2df1b5b3510ffc1948ff23dd1
tree07e68d160f6631f9db5feaa3bf5fcc1058390fbb
parented6653d601f1d51e4582470603273c12e20a87e9
sanitize: Print nvme status in case ret > 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