]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Use unique names for VULs, also return 0 on success
authorBrandon Paupore <brandon.paupore@wdc.com>
Thu, 2 Dec 2021 21:40:39 +0000 (15:40 -0600)
committerBrandon Paupore <brandon.paupore@wdc.com>
Thu, 2 Dec 2021 21:40:45 +0000 (15:40 -0600)
commit2ee8028c5cec98e7e58eaf17f00f46c241477adb
tree480bb34ff0808dad9b70e32b425744b78a468e6c
parent1a6027f228004d833d07979088064edef301e0b7
Use unique names for VULs, also return 0 on success

Previously nvme_log_id_to_string returned "WDC Vendor Unique Log ID" if
it was any vendor unique log ID. This causes problems when requesting
JSON output, as only the final vendor unique log ID would be shown.
Instead, append the log id to the string making each unique.

Also, wdc_log_page_directory previously returned whatever the
output_format was. Instead return 0 if the format was valid.

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