summaryrefslogtreecommitdiff
path: root/wcfxo.c
diff options
context:
space:
mode:
authorfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-25 02:37:50 +0000
committerfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-25 02:37:50 +0000
commit85da2eadf21cb940a91e515e9739f4ab06b22fce (patch)
tree76566029d1d6f0149db37e0cb61bf4b4299ba0d9 /wcfxo.c
parent348a0007c3dad4785ecbbf0bafc53c4445e2e253 (diff)
Add rate limiting of kernel log message to wcfxo. (issue #8384 reported by tzafrir)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1960 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcfxo.c')
-rw-r--r--wcfxo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wcfxo.c b/wcfxo.c
index cc4a540..0f804b3 100644
--- a/wcfxo.c
+++ b/wcfxo.c
@@ -436,7 +436,10 @@ ZAP_IRQ_HANDLER(wcfxo_interrupt)
}
if (ints & 0x10) {
- printk("FXO PCI Master abort\n");
+ static int rate_limit = 0;
+
+ if ((rate_limit++ % 1000) > 5)
+ printk("FXO PCI Master abort\n");
/* Stop DMA andlet the watchdog start it again */
wcfxo_stop_dma(wc);
#ifdef LINUX26