Commit 0cf22d6b authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Bjorn Helgaas

PCI: Add "PCIe" to pcie_print_link_status() messages

Currently the pcie_print_link_status() will print PCIe bandwidth and link
width information but does not mention it is pertaining to the PCIe.  Since
this and related functions are used exclusively by networking drivers today
users may get confused into thinking that it's the NIC bandwidth that is
being talked about.  Insert a "PCIe" into the messages.
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent dd70e51e
...@@ -5273,11 +5273,11 @@ void pcie_print_link_status(struct pci_dev *dev) ...@@ -5273,11 +5273,11 @@ void pcie_print_link_status(struct pci_dev *dev)
bw_avail = pcie_bandwidth_available(dev, &limiting_dev, &speed, &width); bw_avail = pcie_bandwidth_available(dev, &limiting_dev, &speed, &width);
if (bw_avail >= bw_cap) if (bw_avail >= bw_cap)
pci_info(dev, "%u.%03u Gb/s available bandwidth (%s x%d link)\n", pci_info(dev, "%u.%03u Gb/s available PCIe bandwidth (%s x%d link)\n",
bw_cap / 1000, bw_cap % 1000, bw_cap / 1000, bw_cap % 1000,
PCIE_SPEED2STR(speed_cap), width_cap); PCIE_SPEED2STR(speed_cap), width_cap);
else else
pci_info(dev, "%u.%03u Gb/s available bandwidth, limited by %s x%d link at %s (capable of %u.%03u Gb/s with %s x%d link)\n", pci_info(dev, "%u.%03u Gb/s available PCIe bandwidth, limited by %s x%d link at %s (capable of %u.%03u Gb/s with %s x%d link)\n",
bw_avail / 1000, bw_avail % 1000, bw_avail / 1000, bw_avail % 1000,
PCIE_SPEED2STR(speed), width, PCIE_SPEED2STR(speed), width,
limiting_dev ? pci_name(limiting_dev) : "<unknown>", limiting_dev ? pci_name(limiting_dev) : "<unknown>",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment