]> git.ipfire.org Git - thirdparty/pciutils.git/commit - ls-vpd.c
lspci: Print vendor-/system-specific VPD item ids correctly
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 29 Jun 2009 16:41:56 +0000 (17:41 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 29 Jun 2009 16:54:39 +0000 (18:54 +0200)
commit7f9d30238c940d5410a901f3c42a41670da1f3ef
treeadb79aed48d765fbdf305ab2d930777b1af6eccd
parentab12e4bedabac94df97f8be36acdc909b27f056a
lspci: Print vendor-/system-specific VPD item ids correctly

Vendor- and system-specific VPD items are matched only by their first
character, so we cannot read the item id from the matching structure.
There is a similar issue with unknown VPD items, which is handled by
creating a matching structure dynamically.

We can handle both cases using the static matching structure and the
actual item id, so do that.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
ls-vpd.c