diff options
author | jhb <jhb@FreeBSD.org> | 2005-07-27 15:21:32 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-07-27 15:21:32 +0000 |
commit | 3b5e58119d655e0060dd4eda47c8dc7ca65ffe5a (patch) | |
tree | 02c41fcdbbdd53d2bb0c5dee611d61e9cfbaad81 /sys | |
parent | 142d92ef250e5e3633b6b0e247c356d9d67c16b4 (diff) | |
download | FreeBSD-src-3b5e58119d655e0060dd4eda47c8dc7ca65ffe5a.zip FreeBSD-src-3b5e58119d655e0060dd4eda47c8dc7ca65ffe5a.tar.gz |
Correct the order of some if tests so that we don't complain about being
unable to route an IRQ when we do route an IRQ ok but bootverbose is off.
Reported by: Ben Kaduk minimarmot at gmail dot com
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpica/acpi_pci_link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c index b7b8b0a..456fabe 100644 --- a/sys/dev/acpica/acpi_pci_link.c +++ b/sys/dev/acpica/acpi_pci_link.c @@ -955,8 +955,8 @@ acpi_pci_link_choose_irq(device_t dev, struct link *link) } } - if (bootverbose) { - if (PCI_INTERRUPT_VALID(best_irq)) + if (PCI_INTERRUPT_VALID(best_irq)) { + if (bootverbose) device_printf(dev, "Picked IRQ %u with weight %d\n", best_irq, best_weight); } else |