]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: fix io-command set profile feature
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Sat, 17 Apr 2021 19:13:49 +0000 (00:43 +0530)
committerKeith Busch <kbusch@kernel.org>
Mon, 19 Apr 2021 16:24:52 +0000 (10:24 -0600)
IO Command Set Profile feature with FID 0x19 in TP 4056d
CQE CDW0 value printing is incorrect, fix that.

Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
nvme-print.c

index 211b64eaebfa6007d95998662218143de95a5c4a..064b1f52d8d903f4aa0f4ba9ad8990ec0991b0ed 100755 (executable)
@@ -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;