]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Show driver, BAR#, and resource on pci_ioremap_bar() failure
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Mar 2015 17:30:11 +0000 (12:30 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Mar 2015 23:52:22 +0000 (18:52 -0500)
commit02ac67fe82bf0211f7ddb3ade3d54afbc3b3918f
tree4d958ba0627b2984e63d3885a4e00048260d476d
parent1dc854e0a3861591611beeaa4042cd412b2ff9ac
PCI: Show driver, BAR#, and resource on pci_ioremap_bar() failure

Use dev_warn() to complain about a pci_ioremap_bar() failure so we can
include the driver name, BAR number, and the resource itself.  We could use
dev_WARN() to also get the backtrace as we did previously, but I think
that's more information than we need.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci.c