summaryrefslogtreecommitdiffstats
path: root/drivers/pci/vpd.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2021-07-15 16:59:55 -0500
committerBjorn Helgaas <bhelgaas@google.com>2021-07-30 13:31:42 -0500
commite2cdd86b561719da9ac928635f2a55b370dbb5b1 (patch)
tree0d49622be8267e7e5b7cdbb4cb8958599df9016a /drivers/pci/vpd.c
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-stable-e2cdd86b561719da9ac928635f2a55b370dbb5b1.tar.gz
linux-stable-e2cdd86b561719da9ac928635f2a55b370dbb5b1.tar.bz2
linux-stable-e2cdd86b561719da9ac928635f2a55b370dbb5b1.zip
PCI/VPD: Correct diagnostic for VPD read failure
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>
Diffstat (limited to 'drivers/pci/vpd.c')
-rw-r--r--drivers/pci/vpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/vpd.c b/drivers/pci/vpd.c
index 26bf7c877de5..8c4fad7e3b6a 100644
--- a/drivers/pci/vpd.c
+++ b/drivers/pci/vpd.c
@@ -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 +