summaryrefslogtreecommitdiffstats
path: root/plugins/inspur/inspur-nvme.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 07:59:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 07:59:55 +0000
commit4db51231d9338c31a1182fcb225e9fd7f57db258 (patch)
treef83fa4e90727c4891001f956f02cf5a9500f6c05 /plugins/inspur/inspur-nvme.c
parentReleasing debian version 2.3-2. (diff)
downloadnvme-cli-4db51231d9338c31a1182fcb225e9fd7f57db258.tar.xz
nvme-cli-4db51231d9338c31a1182fcb225e9fd7f57db258.zip
Merging upstream version 2.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/inspur/inspur-nvme.c')
-rw-r--r--plugins/inspur/inspur-nvme.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/inspur/inspur-nvme.c b/plugins/inspur/inspur-nvme.c
index 9d7bb4d..8c929aa 100644
--- a/plugins/inspur/inspur-nvme.c
+++ b/plugins/inspur/inspur-nvme.c
@@ -222,7 +222,9 @@ static int nvme_get_vendor_log(int argc, char **argv, struct command *cmd, struc
return err;
memset(local_mem, 0, BYTE_OF_4K);
- err = nvme_get_log_simple(dev_fd(dev), VENDOR_SMART_LOG_PAGE, sizeof(r1_cli_vendor_log_t), local_mem);
+ err = nvme_get_log_simple(dev_fd(dev),
+ (enum nvme_cmd_get_log_lid)VENDOR_SMART_LOG_PAGE,
+ sizeof(r1_cli_vendor_log_t), local_mem);
if (!err) {
show_r1_vendor_log((r1_cli_vendor_log_t *)local_mem);
show_r1_media_err_log((r1_cli_vendor_log_t *)local_mem);