]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print-stdout: fix to print PEL set feature event FDP events
authorTokunori Ikegami <ikegami.t@gmail.com>
Thu, 2 Jan 2025 12:39:51 +0000 (21:39 +0900)
committerDaniel Wagner <wagi@monom.org>
Thu, 9 Jan 2025 08:20:44 +0000 (09:20 +0100)
Since previously only FDP event type 0 output incorrectly.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
nvme-print-stdout.c

index 21dc5d8069986ba5c2bb66fdffd38ca571883bc4..cc28aeb99d7f76f532faf43f24d6eb1b5e937f26 100644 (file)
@@ -253,7 +253,7 @@ static void stdout_persistent_event_log_fdp_events(unsigned int cdw11,
        unsigned int num = (cdw11 >> 16) & 0xff;
 
        for (unsigned int i = 0; i < num; i++) {
-               printf("\t%-53s: %sEnabled\n", nvme_fdp_event_to_string(buf[0]),
+               printf("\t%-53s: %sEnabled\n", nvme_fdp_event_to_string(buf[i]),
                                cdw12 & 0x1 ? "" : "Not ");
        }
 }