summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/discover-loop.py2
-rw-r--r--examples/mi-mctp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/discover-loop.py b/examples/discover-loop.py
index 09a976b..8481e82 100644
--- a/examples/discover-loop.py
+++ b/examples/discover-loop.py
@@ -56,7 +56,7 @@ except Exception as e:
sys.exit(f'Failed to discover: {e}')
try:
-c.disconnect()
+ c.disconnect()
except Exception as e:
sys.exit(f'Failed to disconnect: {e}')
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;
}