[PATCH] pciutils: change vpd keyword MN to text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The PCI spec defines all keyword data fields as ASCII unless otherwise 
noted.
The MN keyword is not otherwise noted. To make this 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@xxxxxx>
---
 ls-vpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ls-vpd.c b/ls-vpd.c
index 35c2bfa..b79abfc 100644
--- 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" },
--
2.11.0 (Apple Git-81)





[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux