]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
id-ctrl: show Persistent Event Log Size(PELS)
authorMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 25 Aug 2019 13:26:42 +0000 (22:26 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 25 Aug 2019 13:31:13 +0000 (22:31 +0900)
1.4 also has introduced Persistent Event Log Page.  This field will
indicate size of the log in 64KB units.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme-print.c

index 10802d99a32e67fe483747b207e7a8b64b9775ca..11d20ef90d790a6803940e1c4029c182922f8d89 100644 (file)
@@ -1149,6 +1149,7 @@ void __show_nvme_id_ctrl(struct nvme_id_ctrl *ctrl, unsigned int mode, void (*ve
                show_nvme_id_ctrl_anacap(ctrl->anacap);
        printf("anagrpmax : %d\n", ctrl->anagrpmax);
        printf("nanagrpid : %d\n", le32_to_cpu(ctrl->nanagrpid));
+       printf("pels      : %d\n", le32_to_cpu(ctrl->pels));
        printf("sqes      : %#x\n", ctrl->sqes);
        if (human)
                show_nvme_id_ctrl_sqes(ctrl->sqes);