Skip to content

Commit

Permalink
pci: Reduce log level of error message
Browse files Browse the repository at this point in the history
If a link doesn't train, we can end up with error messages like this:

[   63.027261959,3] PHB#0032[8:2]: LINK: Timeout waiting for electrical link
[   63.027265573,3] PHB#0032:00:00.0 Error -6 resetting

The first message is useful but the second message is just debug from
the core PCI code and is confusing to print to the console.

This reduces the second print to debug level so it's not seen by the
console by default.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Reported-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
mikey authored and stewartsmith committed Mar 7, 2018
1 parent 5ba69bb commit 75a89e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ static void pci_reset_phb(void *data)
}
pci_slot_remove_flags(slot, PCI_SLOT_FLAG_BOOTUP);
if (rc < 0)
PCIERR(phb, 0, "Error %lld resetting\n", rc);
PCIDBG(phb, 0, "Error %lld resetting\n", rc);
}

static void pci_scan_phb(void *data)
Expand Down

0 comments on commit 75a89e6

Please sign in to comment.