提交 e4ec7a00 编写于 作者: J Jesse Barnes 提交者: Jesse Barnes

PCI: correct resource number in debug output

If pci_request_region fails, make the warning include the resource number,
not the resource number + 1.
上级 34438ba6
......@@ -1114,7 +1114,7 @@ int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name)
err_out:
dev_warn(&pdev->dev, "BAR %d: can't reserve %s region [%#llx-%#llx]\n",
bar + 1, /* PCI BAR # */
bar,
pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem",
(unsigned long long)pci_resource_start(pdev, bar),
(unsigned long long)pci_resource_end(pdev, bar));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册