linux-nvme / nvme-cli

NVMe management command line interface.
https://nvmexpress.org
GNU General Public License v2.0
1.45k stars 650 forks source link

nvme-print-stdout: fix persistent-event-log set feature event output #2440

Closed xyzhang-up closed 1 month ago

xyzhang-up commented 1 month ago

Refer to FDP Events Set Feature Data Structure: the number of FDP Event Types is only Dword11 bits [23:16]. the buffer only contains FDP Event Type.

The value of mem_buf is incorrect: the pointer 'set_feat_event' should be converted to 'unsigned char *' first

igaw commented 1 month ago

Thanks!