summaryrefslogtreecommitdiffstats
path: root/examples/mi-mctp.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 22:36:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 22:36:07 +0000
commit97e3d220503a676acd81839dea289f4e700d8bd8 (patch)
tree69791901e1ca15319c5c63ffb52fe9cc686f8bee /examples/mi-mctp.c
parentAdding upstream version 1.4. (diff)
downloadlibnvme-97e3d220503a676acd81839dea289f4e700d8bd8.tar.xz
libnvme-97e3d220503a676acd81839dea289f4e700d8bd8.zip
Adding upstream version 1.5.upstream/1.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--examples/mi-mctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/mi-mctp.c b/examples/mi-mctp.c
index c9a3852..8019249 100644
--- a/examples/mi-mctp.c
+++ b/examples/mi-mctp.c
@@ -113,7 +113,7 @@ int do_info(nvme_mi_ep_t ep)
printf(" smart warnings: 0x%x\n", ss_health.sw);
printf(" composite temp: %d\n", ss_health.ctemp);
printf(" drive life used: %d%%\n", ss_health.pdlu);
- printf(" controller status: 0x%04x\n", le16_to_cpu(ss_health.pdlu));
+ printf(" controller status: 0x%04x\n", le16_to_cpu(ss_health.ccs));
return 0;
}