a8002a662b
Resolves: #2187288 Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 00909e8bc7e5a1b7a1129f8e18c60eedca0248f7 Mon Sep 17 00:00:00 2001
|
|
From: Maurizio Lombardi <mlombard@redhat.com>
|
|
Date: Mon, 17 Apr 2023 15:39:56 +0200
|
|
Subject: [PATCH] nvme: fix rnlpt to_string() values.
|
|
|
|
"Reservation Notification Log Page Type" values do not start
|
|
from 0x1 but from 0x0.
|
|
|
|
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
|
|
---
|
|
nvme-print.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/nvme-print.c b/nvme-print.c
|
|
index 8bd2174f..1ed34572 100644
|
|
--- a/nvme-print.c
|
|
+++ b/nvme-print.c
|
|
@@ -610,10 +610,10 @@ void nvme_show_lba_status_log(void *lba_status, __u32 size,
|
|
static const char *resv_notif_to_string(__u8 type)
|
|
{
|
|
switch (type) {
|
|
- case 0x1: return "Empty Log Page";
|
|
- case 0x2: return "Registration Preempted";
|
|
- case 0x3: return "Reservation Released";
|
|
- case 0x4: return "Reservation Preempted";
|
|
+ case 0x0: return "Empty Log Page";
|
|
+ case 0x1: return "Registration Preempted";
|
|
+ case 0x2: return "Reservation Released";
|
|
+ case 0x3: return "Reservation Preempted";
|
|
default: return "Reserved";
|
|
}
|
|
}
|
|
--
|
|
2.31.1
|
|
|