linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* usbatm: printk_ratelimit() always called in the atm_rldbg()
@ 2013-10-26 13:29 Krzysztof Mazur
  2013-10-26 17:37 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Mazur @ 2013-10-26 13:29 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Felipe Balbi, linux-kernel, linux-usb

Hi,

commit 2d6401cf4ca3861692a4779745e0049cac769d10
("USB: usbatm: move the atm_dbg() call to use dynamic debug")
changed the atm_rldbg() to:

#define atm_rldbg(instance, format, arg...)		\
	if (printk_ratelimit())				\
		atm_dbg(instance , format , ## arg)

and now printk_ratelimit() is always called even when debugging is
disabled and a lot of "callbacks suppressed" messages are printed
by the printk_ratelimit():

[...]
usbatm_rx_process: 4977 callbacks suppressed
usbatm_extract_one_cell: 2920 callbacks suppressed
[...]


I'm not sure how to fix that, maybe we need dynamic_pr_debug_ratelimit()?

Krzysiek

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-10-27 10:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-26 13:29 usbatm: printk_ratelimit() always called in the atm_rldbg() Krzysztof Mazur
2013-10-26 17:37 ` Greg Kroah-Hartman
2013-10-26 18:52   ` [PATCH] printk: pr_debug_ratelimited: check state first to reduce "callbacks suppressed" messages Joe Perches
2013-10-26 19:01     ` Greg Kroah-Hartman
2013-10-26 19:51       ` Joe Perches
2013-10-27  3:41       ` [PATCH V2] " Joe Perches
2013-10-27 10:33         ` Krzysztof Mazur
2013-10-26 18:55   ` [PATCH] atmusb: Fix dynamic_debug macros Joe Perches
2013-10-26 19:28     ` Joe Perches
2013-10-26 20:02       ` Krzysztof Mazur
2013-10-27  3:49       ` [PATCH V2] usbatm: Fix dynamic_debug / ratelimited atm_dbg and atm_rldbg macros Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).