diff options
author | Joe Perches <joe@perches.com> | 2013-10-26 20:41:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 16:50:52 -0700 |
commit | 29fc2bc75393864bbc9b90a7a13a0d0e11c6f41e (patch) | |
tree | c01b58e6f7bc61d12e1d1d1eeb036da31ea0ab6d /drivers/usb/class | |
parent | 9d3bd7684645834ede59d285af1d70ccabee9bf3 (diff) | |
download | blackbird-obmc-linux-29fc2bc75393864bbc9b90a7a13a0d0e11c6f41e.tar.gz blackbird-obmc-linux-29fc2bc75393864bbc9b90a7a13a0d0e11c6f41e.zip |
printk: pr_debug_ratelimited: check state first to reduce "callbacks suppressed" messages
pr_debug_ratelimited should be coded similarly to dev_dbg_ratelimited
to reduce the "callbacks suppressed" messages.
Add #include <linux/dynamic_debug.h> to printk.h. Unfortunately, this
new #include must be after the prototype/declaration of function printk.
It may be better to split out these _ratelimited declarations into
a separate file one day.
Any use of these pr_<foo>_ratelimited functions must also have another
specific #include <ratelimited.h>. Most users have this done indirectly
via #include <linux/kernel.h>
printk.h may not #include <linux/ratelimit.h> as it causes circular
dependencies and compilation failures.
Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Krzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class')
0 files changed, 0 insertions, 0 deletions