diff options
author | njl <njl@FreeBSD.org> | 2004-08-12 17:04:19 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-08-12 17:04:19 +0000 |
commit | 6cb56c3870e7f1fcfd92c5b582d2b2d645223a7d (patch) | |
tree | 73ded92c48ab7b4aa4eaa18d9419f3f976a6ae79 /sys/dev/acpica/acpi_pcib.c | |
parent | f149130b5ddcc6307e5f2fcfa98bd4112106d202 (diff) | |
download | FreeBSD-src-6cb56c3870e7f1fcfd92c5b582d2b2d645223a7d.zip FreeBSD-src-6cb56c3870e7f1fcfd92c5b582d2b2d645223a7d.tar.gz |
Only print the link name if there is a link. For the hardwired case, don't
bother printing it. This fixes a panic and acpi_name() has been more robust
as well.
Bug from: Tai-hwa Liang <avatar-at-mmlab.cse.yzu.edu.tw>
Diffstat (limited to 'sys/dev/acpica/acpi_pcib.c')
-rw-r--r-- | sys/dev/acpica/acpi_pcib.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c index d061b72..e7086dc 100644 --- a/sys/dev/acpica/acpi_pcib.c +++ b/sys/dev/acpica/acpi_pcib.c @@ -123,10 +123,13 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin) } prt = &entry->prt; link = entry->pci_link; - if (bootverbose) - device_printf(pcib, "matched entry for %d.%d.INT%c (src %s)\n", - pci_get_bus(dev), pci_get_slot(dev), 'A' + pin, - acpi_name(entry->prt_source)); + if (bootverbose) { + device_printf(pcib, "matched entry for %d.%d.INT%c", + pci_get_bus(dev), pci_get_slot(dev), 'A' + pin); + if (prt->Source[0] != '\0') + printf(" (src %s)", acpi_name(entry->prt_source)); + printf("\n"); + } /* * If source is empty/NULL, the source index is a global IRQ number |