]> mj.ucw.cz Git - pciutils.git/commitdiff
Decode VPD fully only with -vv or higher.
authorMartin Mares <mj@ucw.cz>
Fri, 21 Nov 2008 21:43:49 +0000 (22:43 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 21 Nov 2008 21:43:49 +0000 (22:43 +0100)
This brings the behavior in line with the other capabilities.

ls-vpd.c

index 9c7b3d4065a3f335237f0cb0e116a8431235d1a6..9f0c0570bcf7b8d561a85ceee5c1035562a9dbda 100644 (file)
--- a/ls-vpd.c
+++ b/ls-vpd.c
@@ -44,6 +44,8 @@ cap_vpd(struct device *d)
   byte csum = 0;
 
   printf("Vital Product Data\n");
+  if (verbose < 2)
+    return;
 
   while (res_addr <= PCI_VPD_ADDR_MASK)
     {