]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: PCI: tweak _PRT lookup debug
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 9 Dec 2008 04:30:56 +0000 (21:30 -0700)
committerLen Brown <len.brown@intel.com>
Wed, 31 Dec 2008 02:29:37 +0000 (21:29 -0500)
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>
drivers/acpi/pci_irq.c

index aabf8a965aff469caaa0063209239b416e775c74..7978c97afb0a7eaba267ab7ca32b3aa61a4274b5 100644 (file)
@@ -395,15 +395,16 @@ acpi_pci_irq_lookup(struct pci_dev *dev, int pin,
        int ret;
 
 
-       ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Searching for _PRT entry for %s[%c]\n",
-                         pci_name(dev), pin_name(pin)));
-
        entry = acpi_pci_irq_find_prt_entry(dev, pin);
        if (!entry) {
-               ACPI_DEBUG_PRINT((ACPI_DB_INFO, "_PRT entry not found\n"));
+               ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No %s[%c] _PRT entry\n",
+                                 pci_name(dev), pin_name(pin)));
                return -1;
        }
 
+       ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found %s[%c] _PRT entry\n",
+                         pci_name(dev), pin_name(pin)));
+
        ret = func(entry, triggering, polarity, link);
        return ret;
 }
@@ -455,8 +456,8 @@ acpi_pci_irq_derive(struct pci_dev *dev,
                return -1;
        }
 
-       ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Derive GSI %d for device %s from %s\n",
-                         irq, pci_name(dev), pci_name(bridge)));
+       ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Derived GSI %d for %s INT %c from %s\n",
+                         irq, pci_name(dev), pin_name(orig_pin), pci_name(bridge)));
 
        return irq;
 }