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>
This commit is contained in:
Elyes HAOUAS 2021-01-16 17:29:17 +01:00 committed by Michael Niewöhner
parent aded1d7fd0
commit f984aecc02
1 changed files with 4 additions and 5 deletions

View File

@ -1211,14 +1211,13 @@ void pci_scan_bus(struct bus *bus, unsigned int min_devfn,
struct device *dev, **prev; struct device *dev, **prev;
int once = 0; 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. */ /* Maximum sane devfn is 0xFF. */
if (max_devfn > 0xff) { if (max_devfn > 0xff) {
printk(BIOS_ERR, "PCI: pci_scan_bus limits devfn %x - " printk(BIOS_ERR, "PCI: %s limits devfn %x - devfn %x\n",
"devfn %x\n", min_devfn, max_devfn); __func__, min_devfn, max_devfn);
printk(BIOS_ERR, "PCI: pci_scan_bus upper limit too big. " printk(BIOS_ERR, "PCI: %s upper limit too big. Using 0xff.\n", __func__);
"Using 0xff.\n");
max_devfn=0xff; max_devfn=0xff;
} }