diff options
author | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-01-25 02:37:50 +0000 |
---|---|---|
committer | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-01-25 02:37:50 +0000 |
commit | 85da2eadf21cb940a91e515e9739f4ab06b22fce (patch) | |
tree | 76566029d1d6f0149db37e0cb61bf4b4299ba0d9 /wcfxo.c | |
parent | 348a0007c3dad4785ecbbf0bafc53c4445e2e253 (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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |