]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: Show mec field in human output instead of vwci
authorDaniel Wagner <dwagner@suse.de>
Wed, 18 May 2022 12:17:03 +0000 (14:17 +0200)
committerDaniel Wagner <dwagner@suse.de>
Wed, 18 May 2022 12:17:03 +0000 (14:17 +0200)
Looks like a copy&past error for the human output.

Reported-by: mgerdts
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Fix: 43460fcce21b ("nvme: add identify controller structure 2.0 spec. fields")

nvme-print.c

index 60941191af6ed860af621e0c60ae05081e372579..1e4e4c8c88d54a6eae2ece5173bfd8bcec2ca404 100644 (file)
@@ -4568,7 +4568,7 @@ void nvme_show_id_ctrl(struct nvme_id_ctrl *ctrl, enum nvme_print_flags flags,
                nvme_show_id_ctrl_vwci(ctrl->vwci);
        printf("mec       : %u\n", ctrl->mec);
        if (human)
-               nvme_show_id_ctrl_mec(ctrl->vwci);
+               nvme_show_id_ctrl_mec(ctrl->mec);
 
        printf("oacs      : %#x\n", le16_to_cpu(ctrl->oacs));
        if (human)