123456789101112131415161718192021222324252627282930313233343536373839404142 |
- From patchwork Tue Mar 12 09:51:41 2019
- Content-Type: text/plain; charset="utf-8"
- MIME-Version: 1.0
- Content-Transfer-Encoding: 7bit
- X-Patchwork-Submitter: Stanislaw Gruszka <[email protected]>
- X-Patchwork-Id: 10848959
- X-Patchwork-Delegate: [email protected]
- From: Stanislaw Gruszka <[email protected]>
- To: [email protected]
- Cc: =?utf-8?q?Tomislav_Po=C5=BEega?= <[email protected]>,
- Daniel Golle <[email protected]>, Felix Fietkau <[email protected]>,
- Mathias Kresin <[email protected]>
- Subject: [PATCH v3 2/4] rt2x00: use ratelimited variants dev_warn/dev_err
- Date: Tue, 12 Mar 2019 10:51:41 +0100
- Message-Id: <[email protected]>
- In-Reply-To: <[email protected]>
- References: <[email protected]>
- 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 <[email protected]>
- Signed-off-by: Stanislaw Gruszka <[email protected]>
- ---
- drivers/net/wireless/ralink/rt2x00/rt2x00.h | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
- --- 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, \
|