From 1dd02dae44cb455d780a2b23f6f967c825970b34 Mon Sep 17 00:00:00 2001 From: Keith Busch Date: Mon, 17 Feb 2020 13:09:56 -0800 Subject: [PATCH] Replace accidental line deletions Signed-off-by: Keith Busch --- libnvme | 2 +- nvme.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libnvme b/libnvme index cb642a0..dac8cc7 160000 --- a/libnvme +++ b/libnvme @@ -1 +1 @@ -Subproject commit cb642a0ce386d274ba04baeab5e60b4232423a67 +Subproject commit dac8cc72072388bd56ad12b1d9613657aef1e87a diff --git a/nvme.c b/nvme.c index 9037487..e457d18 100644 --- a/nvme.c +++ b/nvme.c @@ -222,6 +222,15 @@ int validate_output_format(char *format) return -EINVAL; } +void nvme_show_status(const char *prefix, int status) +{ + if (status < 0) + perror(prefix); + else + fprintf(stderr, "%s: nvme status: %s(%#x)\n", prefix, + nvme_status_to_string(status), status); +} + static int get_smart_log(int argc, char **argv, struct command *cmd, struct plugin *plugin) { struct nvme_smart_log log; -- 2.50.1