mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
PCI/PM: Use pci_WARN() to include device information
Add and use pci_WARN() wrappers so warnings include device information. Link: https://lore.kernel.org/r/20191017212851.54237-3-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
6941a0c2bd
commit
12bcae44bf
2 changed files with 25 additions and 17 deletions
|
@ -2400,4 +2400,12 @@ void pci_uevent_ers(struct pci_dev *pdev, enum pci_ers_result err_type);
|
|||
#define pci_info_ratelimited(pdev, fmt, arg...) \
|
||||
dev_info_ratelimited(&(pdev)->dev, fmt, ##arg)
|
||||
|
||||
#define pci_WARN(pdev, condition, fmt, arg...) \
|
||||
WARN(condition, "%s %s: " fmt, \
|
||||
dev_driver_string(&(pdev)->dev), pci_name(pdev), ##arg)
|
||||
|
||||
#define pci_WARN_ONCE(pdev, condition, fmt, arg...) \
|
||||
WARN_ONCE(condition, "%s %s: " fmt, \
|
||||
dev_driver_string(&(pdev)->dev), pci_name(pdev), ##arg)
|
||||
|
||||
#endif /* LINUX_PCI_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue