aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-12-08 23:30:56 -0500
committerLen Brown <len.brown@intel.com>2008-12-30 21:29:37 -0500
commit1350487eeb616889f589e9b8c06bd5077452b7e3 (patch)
tree87b3ad7508ab1f5838439323080455daba5c224a /drivers/acpi
parent063563b4b8f87e2be0e127ccf3a8e6eef6309ff4 (diff)
ACPI: PCI: tweak _PRT lookup debug
Print one message (either "found" or "not found") for every _PRT search. And add pin information to the INTx swizzling debug. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/pci_irq.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c
index aabf8a965af..7978c97afb0 100644
--- a/drivers/acpi/pci_irq.c
+++ b/drivers/acpi/pci_irq.c
@@ -395,15 +395,16 @@ acpi_pci_irq_lookup(struct pci_dev *dev, int pin,
395 int ret; 395 int ret;
396 396
397 397
398 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Searching for _PRT entry for %s[%c]\n",
399 pci_name(dev), pin_name(pin)));
400
401 entry = acpi_pci_irq_find_prt_entry(dev, pin); 398 entry = acpi_pci_irq_find_prt_entry(dev, pin);
402 if (!entry) { 399 if (!entry) {
403 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "_PRT entry not found\n")); 400 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No %s[%c] _PRT entry\n",
401 pci_name(dev), pin_name(pin)));
404 return -1; 402 return -1;
405 } 403 }
406 404
405 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found %s[%c] _PRT entry\n",
406 pci_name(dev), pin_name(pin)));
407
407 ret = func(entry, triggering, polarity, link); 408 ret = func(entry, triggering, polarity, link);
408 return ret; 409 return ret;
409} 410}
@@ -455,8 +456,8 @@ acpi_pci_irq_derive(struct pci_dev *dev,
455 return -1; 456 return -1;
456 } 457 }
457 458
458 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Derive GSI %d for device %s from %s\n", 459 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Derived GSI %d for %s INT %c from %s\n",
459 irq, pci_name(dev), pci_name(bridge))); 460 irq, pci_name(dev), pin_name(orig_pin), pci_name(bridge)));
460 461
461 return irq; 462 return irq;
462} 463}