]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
pciutils: change MN VPD keyword to F_TEXT
authorMartin Mares <mj@ucw.cz>
Fri, 17 Nov 2017 12:58:23 +0000 (13:58 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 17 Nov 2017 12:58:23 +0000 (13:58 +0100)
The PCI spec defines all keyword data fields as ASCII unless
otherwise noted. The MN keyword is not otherwise noted. To make
the MN field human readable in lspci verbose outputs, this patch
changes the MN keyword definition from F_BINARY to F_TEXT.

Signed-off-by: John Walthour <return.0@me.com>
ls-vpd.c

index 35c2bfafee8c8ce8a5789abcac56247926e5d5c9..b79abfc5b19735166a82425a40949b90b7129e54 100644 (file)
--- a/ls-vpd.c
+++ b/ls-vpd.c
@@ -33,7 +33,7 @@ static const struct vpd_item {
 } vpd_items[] = {
   { 'C','P', F_BINARY, "Extended capability" },
   { 'E','C', F_TEXT,   "Engineering changes" },
-  { 'M','N', F_BINARY, "Manufacture ID" },
+  { 'M','N', F_TEXT,   "Manufacture ID" },
   { 'P','N', F_TEXT,   "Part number" },
   { 'R','V', F_RESVD,  "Reserved" },
   { 'R','W', F_RDWR,   "Read-write area" },