pci: Log a message if PIR checksum failed
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 4 Jul 2009 11:05:35 +0000 (19:05 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 8 Jul 2009 10:50:39 +0000 (18:50 +0800)
sys/bus/pci/i386/pci_pir.c

index 93924af..a44e101 100644 (file)
@@ -152,8 +152,10 @@ pci_pir_open(void)
        for (cv = (u_int8_t *)pt, ck = 0, i = 0;
             i < (pt->pt_header.ph_length); i++)
                ck += cv[i];
-       if (ck != 0)
+       if (ck != 0) {
+               kprintf("$PIR: checksum failed!\n");
                return;
+       }
 
        /* Ok, we've got a valid table. */
        pci_route_table = pt;