[linux-dvb] PATCH for SAA7146 DMA buffer overflow in budget cards (updated)

matthieu castet castet.matthieu at free.fr
Sat Mar 4 10:12:31 CET 2006


Hi,

		dvb_dmx_swfilter_packets(&budget->demux, mem, newdma / 188);
>  	}
> +	if (count > (budget->buffer_size * 80/100)) {
> +		budget->buffer_warnings++;
> +		if (budget->buffer_warnings < 100 || budget->buffer_warnings % 100 == 0) {
> +			printk("ttpci vpeirq: used %d times >80%% of buffer (%d bytes now)\n",
> +				budget->buffer_warnings, count);
> +		}
> +	}
>  }
>  
Why not using printk_ratelimit() ?





More information about the linux-dvb mailing list