Skip to content

Commit b67af14

Browse files
nvme-print: fix the result of I/O Command Set Profile feature
The Get Features command submitted for I/O Command Set Profile feature will return the I/O Command Set Combination Index [08:00] in Dword0 of completion queue entry. So, fixed the mask of the result. Signed-off-by: Francis Pravin <francis.p@samsung.com>
1 parent 3e512dd commit b67af14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvme-print-stdout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5034,7 +5034,7 @@ static void stdout_feature_show_fields(enum nvme_features_id fid,
50345034
printf("\tEndurance Group Critical Warnings : %u\n", NVME_FEAT_EG_EGCW(result));
50355035
break;
50365036
case NVME_FEAT_FID_IOCS_PROFILE:
5037-
printf("\tI/O Command Set Profile: %s\n", result & 0x1 ? "True" : "False");
5037+
printf("\tI/O Command Set Profile: %u\n", NVME_GET(result, FEAT_IOCSP_IOCSCI));
50385038
break;
50395039
case NVME_FEAT_FID_SPINUP_CONTROL:
50405040
printf("\tSpinup control feature Enabled: %s\n", (result & 1) ? "True" : "False");

0 commit comments

Comments
 (0)