]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/wdc: don't write invalid log data
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 12 Jul 2022 07:30:43 +0000 (15:30 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Tue, 12 Jul 2022 07:39:52 +0000 (15:39 +0800)
commit0570a6831b40bf3a304b4deb07542ad10692dbf9
tree91eb94fd89cacfaac887e6ff53778ae43e26b77e
parent2d8466368e0138033cbe68f0d356ac93a38fc226
plugins/wdc: don't write invalid log data

In wdc_do_cap_telemetry_log, we currently continue to write log data if
any of the telemetry queries return with < 0.

This change aborts the output write on these errors instead.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
plugins/wdc/wdc-nvme.c