summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2021-01-16 17:29:17 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2021-01-26 20:52:10 +0000
commitf984aecc02a42575c24412f500c432bb9f0f8432 (patch)
tree23e1eadd5daf9b0edd4abb5c97a81005f172aebf /src/device
parentaded1d7fd04a60c59dca0ff83dd428387e110ef4 (diff)
downloadcoreboot-f984aecc02a42575c24412f500c432bb9f0f8432.tar.xz
device/pci_device.c: Use __func__
Change-Id: Ia6c7de99164682dcbcc375969403d2bfb9675f3c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49544 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/pci_device.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 5d38423cf3..66f5447126 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -1211,14 +1211,13 @@ void pci_scan_bus(struct bus *bus, unsigned int min_devfn,
struct device *dev, **prev;
int once = 0;
- printk(BIOS_DEBUG, "PCI: pci_scan_bus for bus %02x\n", bus->secondary);
+ printk(BIOS_DEBUG, "PCI: %s for bus %02x\n", __func__, bus->secondary);
/* Maximum sane devfn is 0xFF. */
if (max_devfn > 0xff) {
- printk(BIOS_ERR, "PCI: pci_scan_bus limits devfn %x - "
- "devfn %x\n", min_devfn, max_devfn);
- printk(BIOS_ERR, "PCI: pci_scan_bus upper limit too big. "
- "Using 0xff.\n");
+ printk(BIOS_ERR, "PCI: %s limits devfn %x - devfn %x\n",
+ __func__, min_devfn, max_devfn);
+ printk(BIOS_ERR, "PCI: %s upper limit too big. Using 0xff.\n", __func__);
max_devfn=0xff;
}