projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
97db64c
)
pci: Log a message if PIR checksum failed
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 4 Jul 2009 11:05:35 +0000 (19:05 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 8 Jul 2009 10:50:39 +0000 (18:50 +0800)
sys/bus/pci/i386/pci_pir.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/bus/pci/i386/pci_pir.c
b/sys/bus/pci/i386/pci_pir.c
index
93924af
..
a44e101
100644
(file)
--- 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;