From 9c7cc9a316063abe77bb9ef95e7e2ce879b87ac6 Mon Sep 17 00:00:00 2001 From: Minwoo Im Date: Tue, 10 Sep 2019 23:15:57 +0900 Subject: [PATCH] nvme-print: fix to print ctrltype when human-readable The controller type should be printed out when the human-readable option is given. Signed-off-by: Minwoo Im --- nvme-print.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nvme-print.c b/nvme-print.c index 8fdab57f..55c44479 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -1105,6 +1105,7 @@ void __show_nvme_id_ctrl(struct nvme_id_ctrl *ctrl, unsigned int mode, void (*ve show_nvme_id_ctrl_ctratt(ctrl->ctratt); printf("rrls : %#x\n", le16_to_cpu(ctrl->rrls)); printf("cntrltype : %d\n", ctrl->cntrltype); + if (human) show_nvme_id_ctrl_cntrltype(ctrl->cntrltype); printf("fguid : %-.*s\n", (int)sizeof(ctrl->fguid), ctrl->fguid); printf("crdt1 : %u\n", le16_to_cpu(ctrl->crdt1)); -- 2.50.1