PCI: Expand "VPD access disabled" quirk message
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 15 Nov 2016 14:01:17 +0000 (08:01 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 12 Dec 2016 16:05:24 +0000 (10:05 -0600)
It's not very enlightening to see

  pci 0000:07:00.0: [Firmware Bug]: VPD access disabled

in the dmesg log because there's no clue about what the firmware bug is.
Expand the message to explain why we're disabling VPD.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c

index c232729..7329796 100644 (file)
@@ -2156,7 +2156,7 @@ static void quirk_blacklist_vpd(struct pci_dev *dev)
 {
        if (dev->vpd) {
                dev->vpd->len = 0;
-               dev_warn(&dev->dev, FW_BUG "VPD access disabled\n");
+               dev_warn(&dev->dev, FW_BUG "disabling VPD access (can't determine size of non-standard VPD format)\n");
        }
 }