summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-19 10:38:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-19 10:38:18 +0000
commit678392aa6bef5e30cb1b9452978fd0b2ce56c2ee (patch)
tree26ac06227a6fe6571157a8860bac80506f00c5d7 /examples
parentReleasing debian version 1.7.1-1. (diff)
downloadlibnvme-678392aa6bef5e30cb1b9452978fd0b2ce56c2ee.tar.xz
libnvme-678392aa6bef5e30cb1b9452978fd0b2ce56c2ee.zip
Merging upstream version 1.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/mi-mctp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mi-mctp.c b/examples/mi-mctp.c
index 8019249..e0b7644 100644
--- a/examples/mi-mctp.c
+++ b/examples/mi-mctp.c
@@ -201,7 +201,7 @@ int do_identify(nvme_mi_ep_t ep, int argc, char **argv)
partial = argc > 2 && !strcmp(argv[2], "--partial");
- ctrl = nvme_mi_init_ctrl(ep, tmp);
+ ctrl = nvme_mi_init_ctrl(ep, ctrl_id);
if (!ctrl) {
warn("can't create controller");
return -1;
@@ -211,7 +211,7 @@ int do_identify(nvme_mi_ep_t ep, int argc, char **argv)
id_args.args_size = sizeof(id_args);
id_args.cns = NVME_IDENTIFY_CNS_CTRL;
id_args.nsid = NVME_NSID_NONE;
- id_args.cntid = ctrl_id;
+ id_args.cntid = 0;
id_args.csi = NVME_CSI_NVM;
/* for this example code, we can either do a full or partial identify;