mirror of https://gitee.com/openkylin/linux.git
rt2x00: use ratelimited variants dev_warn/dev_err
As reported by Randy we can overwhelm logs on some USB error conditions. To avoid that use dev_warn_ratelimited() and dev_err_ratelimitd(). Reported-and-tested-by: Randy Oostdyk <linux-kernel@oostdyk.com> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
0ed2a00534
commit
bb3b18c925
|
@ -69,10 +69,10 @@
|
|||
printk(KERN_ERR KBUILD_MODNAME ": %s: Error - " fmt, \
|
||||
__func__, ##__VA_ARGS__)
|
||||
#define rt2x00_err(dev, fmt, ...) \
|
||||
wiphy_err((dev)->hw->wiphy, "%s: Error - " fmt, \
|
||||
wiphy_err_ratelimited((dev)->hw->wiphy, "%s: Error - " fmt, \
|
||||
__func__, ##__VA_ARGS__)
|
||||
#define rt2x00_warn(dev, fmt, ...) \
|
||||
wiphy_warn((dev)->hw->wiphy, "%s: Warning - " fmt, \
|
||||
wiphy_warn_ratelimited((dev)->hw->wiphy, "%s: Warning - " fmt, \
|
||||
__func__, ##__VA_ARGS__)
|
||||
#define rt2x00_info(dev, fmt, ...) \
|
||||
wiphy_info((dev)->hw->wiphy, "%s: Info - " fmt, \
|
||||
|
|
Loading…
Reference in New Issue