ALSA: usb-audio: Don't use printk_ratelimit for debug prints
authorSean Anderson <sean.anderson@linux.dev>
Fri, 1 Aug 2025 15:47:10 +0000 (11:47 -0400)
committerTakashi Iwai <tiwai@suse.de>
Sat, 2 Aug 2025 14:17:50 +0000 (16:17 +0200)
commit0808da36b982442afc4a34555e492a16f2e5973e
treed5ddd190e4c1cf94c7087d7bcb8efec351b8de7b
parentdf485a4b2b3ee5b35c80f990beb554e38a8a5fb1
ALSA: usb-audio: Don't use printk_ratelimit for debug prints

printk_ratelimit is deprecated, since it shares state with all other
printk sites. Additionally, the suppression message is printed at
warning level even though the actual messages are printed at debug and
are (usually) invisible! This can result in thousands of messages like

retire_capture_urb: 4992 callbacks suppressed

in the console, and can inhibit debugging since it is unclear what the
source of the suppressed callbacks is.

Switch to dev_dbg_ratelimited which doesn't print anything unless debug
is enabled.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Link: https://patch.msgid.link/20250801154710.739464-1-sean.anderson@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c