Skip to content

Commit

Permalink
nvme-print: fix Arbitration Mechanism Supported
Browse files Browse the repository at this point in the history
Fix the error of the "Arbitration Mechanism Supported"
in the Controller Capabilities field of Controller Properties

Signed-off-by: Xiaoyuan Zhang <[email protected]>
  • Loading branch information
xyzhang-up authored and igaw committed Dec 3, 2024
1 parent 4e7327f commit d70d4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme-print-stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ static void stdout_registers_cap(struct nvme_bar_cap *cap)
printf("\tDoorbell Stride (DSTRD): %u bytes\n", 1 << (2 + cap->dstrd));
printf("\tTimeout (TO): %u ms\n", cap->to * 500);
printf("\tArbitration Mechanism Supported (AMS): Weighted Round Robin with Urgent Priority Class is %s\n",
cap->ams & 0x02 ? "Supported" : "Not supported");
cap->ams & 0x01 ? "Supported" : "Not supported");
printf("\tContiguous Queues Required (CQR): %s\n", cap->cqr ? "Yes" : "No");
printf("\tMaximum Queue Entries Supported (MQES): %u\n\n", cap->mqes + 1);
}
Expand Down

0 comments on commit d70d4b1

Please sign in to comment.