Signed-off-by: Keith Busch <kbusch@kernel.org>
-Subproject commit cb642a0ce386d274ba04baeab5e60b4232423a67
+Subproject commit dac8cc72072388bd56ad12b1d9613657aef1e87a
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;