Message ID | 1552384303-29529-3-git-send-email-sgruszka@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Commit | bb3b18c925333695261ccaad84c0edc100a4d9e2 |
Delegated to: | Kalle Valo |
Headers | show |
Series | rt2x00 random fixes | expand |
Stanislaw Gruszka <sgruszka@redhat.com> wrote: > 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> 3 patches applied to wireless-drivers-next.git, thanks. bb3b18c92533 rt2x00: use ratelimited variants dev_warn/dev_err e383c70474db rt2x00: check number of EPROTO errors 61a4e5ff0d72 rt2x00: do not print error when queue is full
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00.h b/drivers/net/wireless/ralink/rt2x00/rt2x00.h index 4b1744e9fb78..5657495cf626 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2x00.h +++ b/drivers/net/wireless/ralink/rt2x00/rt2x00.h @@ -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, \
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> --- drivers/net/wireless/ralink/rt2x00/rt2x00.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)