]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
wdc: rework log retrieval and parsing
authorBrandon Paupore <brandon.paupore@wdc.com>
Mon, 25 Nov 2024 17:11:31 +0000 (11:11 -0600)
committerDaniel Wagner <wagi@monom.org>
Mon, 2 Dec 2024 11:30:19 +0000 (12:30 +0100)
commit0ffdcfc7246ad557862f00248ffcd29bccbaf3da
tree21251d318580117094571b8c69bcdf9a7b626767
parentc8ffffcb76a55936aaa0634e358162fb9d0b6203
wdc: rework log retrieval and parsing

We should only need to retrieve the log page once, rather than once per
field to be parsed. This also fixes some endianness issues when handling
the parsed data entries.

Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
plugins/wdc/wdc-nvme.c
plugins/wdc/wdc-nvme.h