From: Tokunori Ikegami Date: Thu, 2 Jan 2025 12:39:51 +0000 (+0900) Subject: nvme-print-stdout: fix to print PEL set feature event FDP events X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=de51cc94820a0c307861dc771c58e1341d27c06e;p=users%2Fsagi%2Fnvme-cli.git nvme-print-stdout: fix to print PEL set feature event FDP events Since previously only FDP event type 0 output incorrectly. Signed-off-by: Tokunori Ikegami --- diff --git a/nvme-print-stdout.c b/nvme-print-stdout.c index 21dc5d80..cc28aeb9 100644 --- a/nvme-print-stdout.c +++ b/nvme-print-stdout.c @@ -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 "); } }