]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-print: Handle NULL hostid in JSON output
authorTomas Bzatek <tbzatek@redhat.com>
Tue, 13 Sep 2022 14:54:44 +0000 (16:54 +0200)
committerTomas Bzatek <tbzatek@redhat.com>
Wed, 14 Sep 2022 11:39:24 +0000 (13:39 +0200)
commitcc07ea605d1e89eea98ace6b16e8fd3305a6ee6d
treec813708c7c3207ca4a45692cc45ee915eaba06b0
parentda4d2ac1978f89d039746481f085c2cee5d6a5c1
nvme-print: Handle NULL hostid in JSON output

For pcie devices there might be no hostid available, in case the
/etc/nvme/hostid file doesn't exist.
nvme-print.c