From 2642149489e427897035ebdffce8d276d2c5eeaf Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 13 Nov 2022 17:34:34 -0500 Subject: [PATCH] nvme: call nvme_get_smart_log() with false Changing this to true resulted in my Western Digital 970 EVO Pro NVMe SSDs returning all zeros for smartlog information. Reverts change made in cc73f65fc016 ("nvme: Add wrappers for Get Log page helpers") Resolves #1729. Signed-off-by: nick black --- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme.c b/nvme.c index 34af9331..9e0b3670 100644 --- a/nvme.c +++ b/nvme.c @@ -452,7 +452,7 @@ static int get_smart_log(int argc, char **argv, struct command *cmd, struct plug if (cfg.human_readable) flags |= VERBOSE; - err = nvme_cli_get_log_smart(dev, cfg.namespace_id, true, + err = nvme_cli_get_log_smart(dev, cfg.namespace_id, false, &smart_log); if (!err) nvme_show_smart_log(&smart_log, cfg.namespace_id, -- 2.50.1