From: Sepherosa Ziehau Date: Sat, 4 Jul 2009 11:05:35 +0000 (+0800) Subject: pci: Log a message if PIR checksum failed X-Git-Tag: v2.3.2~36^2~28 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/e71fdd32326ce7f0f268e10549987c0901879692 pci: Log a message if PIR checksum failed --- diff --git a/sys/bus/pci/i386/pci_pir.c b/sys/bus/pci/i386/pci_pir.c index 93924af..a44e101 100644 --- a/sys/bus/pci/i386/pci_pir.c +++ b/sys/bus/pci/i386/pci_pir.c @@ -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;