PCI/VPD: Correct diagnostic for VPD read failure
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 15 Jul 2021 21:59:55 +0000 (16:59 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Jul 2021 18:31:42 +0000 (13:31 -0500)
Previously, when a VPD read failed, we warned about an "invalid large
VPD tag".  Warn about the VPD read failure instead.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/pci/vpd.c

index 26bf7c877de5e512ac5073374bc3ecb4eb416b65..8c4fad7e3b6a648a58444b186c9282f176465517 100644 (file)
@@ -92,8 +92,8 @@ static size_t pci_vpd_size(struct pci_dev *dev, size_t old_size)
                            (tag == PCI_VPD_LTIN_RW_DATA)) {
                                if (pci_read_vpd(dev, off+1, 2,
                                                 &header[1]) != 2) {
-                                       pci_warn(dev, "invalid large VPD tag %02x size at offset %zu",
-                                                tag, off + 1);
+                                       pci_warn(dev, "failed VPD read at offset %zu\n",
+                                                off + 1);
                                        return 0;
                                }
                                off += PCI_VPD_LRDT_TAG_SIZE +