]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
print: Introduce show_nvme_status to print nvme status
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 25 Apr 2019 12:40:14 +0000 (21:40 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 25 Apr 2019 13:12:14 +0000 (22:12 +0900)
commit3979e07a8fb846a0dd0ab28d4f96651d5e1b457b
treee8cf65160993eb572c6e298ab10300f37996584b
parentddd14514cb4cab5df7fa0f5ceedf1682505afb1d
print: Introduce show_nvme_status to print nvme status

We have so many subcommands so that we need to have a function in
common to print out status of nvme command.

The nvme status will be printed out in case the subcommand itself fails
due to a reason.  In case of command which is in the middle of the
subcommand, it will be printed as "<cmd> failed" before status.

This patch has nothing to do with functional change.

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