From d70d4b1008d467c6f65a751d6714d1dff6481331 Mon Sep 17 00:00:00 2001 From: Xiaoyuan Zhang Date: Tue, 3 Dec 2024 16:11:16 +0800 Subject: [PATCH] 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 --- nvme-print-stdout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme-print-stdout.c b/nvme-print-stdout.c index 9a828ac4..7e167609 100644 --- a/nvme-print-stdout.c +++ b/nvme-print-stdout.c @@ -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); } -- 2.50.1