]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-print-stdout: fix persistent-event-log set feature event output
authorXiaoyuan Zhang <zhxiaoy2024@gmail.com>
Sat, 27 Jul 2024 07:46:30 +0000 (15:46 +0800)
committerDaniel Wagner <wagi@monom.org>
Mon, 29 Jul 2024 08:46:57 +0000 (10:46 +0200)
commit9e137f074328a5a5e45eaf2bb0c8d0e7ba661481
tree4540a10558ddf9b970c7a472fd5ae0423d8dcec8
parenta11a96f471033dc7e03ccad6e71f443e08fdfe13
nvme-print-stdout: fix persistent-event-log set feature event output

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

Signed-off-by: Xiaoyuan Zhang <zhxiaoy2024@gmail.com>
nvme-print-stdout.c