From: Gollu Appalanaidu Date: Sat, 17 Apr 2021 19:13:49 +0000 (+0530) Subject: nvme-print: fix io-command set profile feature X-Git-Tag: v1.14~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3e2af5fdfcf059b99b916c152b40e9fc65401c70;p=users%2Fsagi%2Fnvme-cli.git nvme-print: fix io-command set profile feature IO Command Set Profile feature with FID 0x19 in TP 4056d CQE CDW0 value printing is incorrect, fix that. Signed-off-by: Gollu Appalanaidu --- diff --git a/nvme-print.c b/nvme-print.c index 211b64ea..064b1f52 100755 --- a/nvme-print.c +++ b/nvme-print.c @@ -5699,7 +5699,7 @@ void nvme_feature_show_fields(enum nvme_feat fid, unsigned int result, unsigned printf("\tEndurance Group Critical Warnings : %u\n", (result >> 16) & 0xff); break; case NVME_FEAT_IOCS_PROFILE: - printf("\tI/O Command Set Profile: %s\n", result & 0x1 ? "True":"False"); + printf("\tI/O Command Set Comination Index(IOCSCI): %u\n", result & 0x1ff); break; case NVME_FEAT_HOST_ID: ull = buf[7]; ull <<= 8; ull |= buf[6]; ull <<= 8; ull |= buf[5]; ull <<= 8;