Skip to content

Commit d70d4b1

Browse files
xyzhang-upigaw
authored andcommitted
nvme-print: fix Arbitration Mechanism Supported
Fix the error of the "Arbitration Mechanism Supported" in the Controller Capabilities field of Controller Properties Signed-off-by: Xiaoyuan Zhang <[email protected]>
1 parent 4e7327f commit d70d4b1

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
@@ -1139,7 +1139,7 @@ static void stdout_registers_cap(struct nvme_bar_cap *cap)
11391139
printf("\tDoorbell Stride (DSTRD): %u bytes\n", 1 << (2 + cap->dstrd));
11401140
printf("\tTimeout (TO): %u ms\n", cap->to * 500);
11411141
printf("\tArbitration Mechanism Supported (AMS): Weighted Round Robin with Urgent Priority Class is %s\n",
1142-
cap->ams & 0x02 ? "Supported" : "Not supported");
1142+
cap->ams & 0x01 ? "Supported" : "Not supported");
11431143
printf("\tContiguous Queues Required (CQR): %s\n", cap->cqr ? "Yes" : "No");
11441144
printf("\tMaximum Queue Entries Supported (MQES): %u\n\n", cap->mqes + 1);
11451145
}

0 commit comments

Comments
 (0)