[zaptel-commits] file: trunk r1960 - /trunk/wcfxo.c
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Wed Jan 24 19:37:50 MST 2007
Author: file
Date: Wed Jan 24 20:37:50 2007
New Revision: 1960
URL: http://svn.digium.com/view/zaptel?view=rev&rev=1960
Log:
Add rate limiting of kernel log message to wcfxo. (issue #8384 reported by tzafrir)
Modified:
trunk/wcfxo.c
Modified: trunk/wcfxo.c
URL: http://svn.digium.com/view/zaptel/trunk/wcfxo.c?view=diff&rev=1960&r1=1959&r2=1960
==============================================================================
--- trunk/wcfxo.c (original)
+++ trunk/wcfxo.c Wed Jan 24 20:37:50 2007
@@ -436,7 +436,10 @@
}
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
More information about the zaptel-commits
mailing list