diff options
author | Nate Lawson <njl@FreeBSD.org> | 2004-08-12 17:04:19 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2004-08-12 17:04:19 +0000 |
commit | 12f57103bb871a9ff2eeb31cef191be425625912 (patch) | |
tree | 73ded92c48ab7b4aa4eaa18d9419f3f976a6ae79 /sys/dev/acpica/acpi_pcib.c | |
parent | 0a9a1f44ce6e1e55d0f7c910f4ffacf535e05eca (diff) |
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>
Notes
Notes:
svn path=/head/; revision=133585
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 d061b7286813..e7086dc4af0c 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 |