mptable: Verbose debug logging about "fixed interrupt routing"
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 21 Mar 2011 13:41:31 +0000 (21:41 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 21 Mar 2011 13:41:31 +0000 (21:41 +0800)
sys/platform/pc32/i386/mp_machdep.c
sys/platform/pc64/x86_64/mp_machdep.c

index c3e465c..43ac12b 100644 (file)
@@ -3728,10 +3728,10 @@ mptable_pci_int_dump(void)
        const struct mptable_pci_int *pci_int;
 
        TAILQ_FOREACH(pci_int, &mptable_pci_int_list, mpci_link) {
-               kprintf("MPTABLE: %d:%d:%d -> IOAPIC %d.%d\n",
+               kprintf("MPTABLE: %d:%d.%c -> IOAPIC %d.%d\n",
                        pci_int->mpci_bus,
                        pci_int->mpci_dev,
-                       pci_int->mpci_pin,
+                       pci_int->mpci_pin + 'a',
                        pci_int->mpci_ioapic_idx,
                        pci_int->mpci_ioapic_pin);
        }
@@ -3764,8 +3764,10 @@ mptable_pci_int_route(int bus, int dev, int pin, int intline)
        }
 
        if (irq < 0) {
-               if (bootverbose)
-                       kprintf("MPTABLE: fixed interrupt routing\n");
+               if (bootverbose) {
+                       kprintf("MPTABLE: fixed interrupt routing "
+                               "for %d:%d.%c\n", bus, dev, pin + 'a');
+               }
 
                irq = ioapic_abi_find_irq(intline,
                        INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);
index dbca743..881f7e5 100644 (file)
@@ -3723,10 +3723,10 @@ mptable_pci_int_dump(void)
        const struct mptable_pci_int *pci_int;
 
        TAILQ_FOREACH(pci_int, &mptable_pci_int_list, mpci_link) {
-               kprintf("MPTABLE: %d:%d:%d -> IOAPIC %d.%d\n",
+               kprintf("MPTABLE: %d:%d.%c -> IOAPIC %d.%d\n",
                        pci_int->mpci_bus,
                        pci_int->mpci_dev,
-                       pci_int->mpci_pin,
+                       pci_int->mpci_pin + 'a',
                        pci_int->mpci_ioapic_idx,
                        pci_int->mpci_ioapic_pin);
        }
@@ -3759,8 +3759,10 @@ mptable_pci_int_route(int bus, int dev, int pin, int intline)
        }
 
        if (irq < 0) {
-               if (bootverbose)
-                       kprintf("MPTABLE: fixed interrupt routing\n");
+               if (bootverbose) {
+                       kprintf("MPTABLE: fixed interrupt routing "
+                               "for %d:%d.%c\n", bus, dev, pin + 'a');
+               }
 
                irq = ioapic_abi_find_irq(intline,
                        INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW);