linux/sound
Sander Eikelenboom f87b60a38a ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log while DEBUG not defined
commit b7a7723513 upstream.

This (widely used) construction:

if(printk_ratelimit())
	dev_dbg()

Causes the ratelimiting to spam the kernel log with the "callbacks suppressed"
message below, even while the dev_dbg it is supposed to rate limit wouldn't
print anything because DEBUG is not defined for this device.

[  533.803964] retire_playback_urb: 852 callbacks suppressed
[  538.807930] retire_playback_urb: 852 callbacks suppressed
[  543.811897] retire_playback_urb: 852 callbacks suppressed
[  548.815745] retire_playback_urb: 852 callbacks suppressed
[  553.819826] retire_playback_urb: 852 callbacks suppressed

So use dev_dbg_ratelimited() instead of this construction.

Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-09 11:18:29 -07:00
..
aoa sound fixes for 3.13-rc1 2013-11-16 12:50:53 -08:00
arm
atmel
core ALSA: control: Make sure that id->index does not overflow 2014-06-26 15:15:43 -04:00
drivers
firewire
i2c
isa
mips
oss sound: oss: remove last sleep_on users 2014-01-14 16:12:07 +01:00
parisc
pci ALSA: hda - hdmi: call overridden init on resume 2014-07-06 18:57:29 -07:00
pcmcia
ppc
sh
soc ASoC: tlv320aci3x: Fix custom snd_soc_dapm_put_volsw_aic3x() function 2014-06-26 15:15:41 -04:00
sparc
spi
synth
usb ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log while DEBUG not defined 2014-07-09 11:18:29 -07:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c