mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 11:51:27 +00:00
PCI: Add 0x prefix to BAR register position in __pci_read_base()
We print the BAR register's position in hexadecimal format, so it is more readable if 0x prefix is added. [bhelgaas: keep dev_printk(), not dev_dbg(), so this is always in dmesg] Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
f722406faa
commit
33963e308e
@ -278,9 +278,9 @@ out:
|
|||||||
pci_write_config_word(dev, PCI_COMMAND, orig_cmd);
|
pci_write_config_word(dev, PCI_COMMAND, orig_cmd);
|
||||||
|
|
||||||
if (bar_too_big)
|
if (bar_too_big)
|
||||||
dev_err(&dev->dev, "reg %x: can't handle 64-bit BAR\n", pos);
|
dev_err(&dev->dev, "reg 0x%x: can't handle 64-bit BAR\n", pos);
|
||||||
if (res->flags && !bar_disabled)
|
if (res->flags && !bar_disabled)
|
||||||
dev_printk(KERN_DEBUG, &dev->dev, "reg %x: %pR\n", pos, res);
|
dev_printk(KERN_DEBUG, &dev->dev, "reg 0x%x: %pR\n", pos, res);
|
||||||
|
|
||||||
return (res->flags & IORESOURCE_MEM_64) ? 1 : 0;
|
return (res->flags & IORESOURCE_MEM_64) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user