From: Joe Perches <joe@perches.com>
To: Arend van Spriel <arend@broadcom.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
Linux Wireless List <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 05/11] brcmfmac: error messages should not be suppressed
Date: Wed, 05 Dec 2012 06:41:29 -0800 [thread overview]
Message-ID: <1354718489.8320.1.camel@joe-AO722> (raw)
In-Reply-To: <1354717564-7183-6-git-send-email-arend@broadcom.com>
On Wed, 2012-12-05 at 15:25 +0100, Arend van Spriel wrote:
> The call to brcmf_dbg(ERROR, ...) only resulted in a log message
> when compiled with -DDEBUG. Error messages are valuable for resolving
> issues so this patch replaces it with brcmf_err(...) so they always
> end up in the log.
Seems like a good idea but you also
removed the net_ratelimit() which doesn't.
> @@ -33,22 +32,15 @@
> #define BRCMF_FIL_VAL 0x1000
> #define BRCMF_USB_VAL 0x2000
>
> +/* error messages are always logged */
> +#define brcmf_err(fmt, ...) pr_err("%s: " fmt, __func__, ##__VA_ARGS__)
> +
> #if defined(DEBUG)
>
> -#define brcmf_dbg(level, fmt, ...) \
> -do { \
> - if (BRCMF_ERROR_VAL == BRCMF_##level##_VAL) { \
> - if (brcmf_msg_level & BRCMF_##level##_VAL) { \
> - if (net_ratelimit()) \
> - pr_debug("%s: " fmt, \
> - __func__, ##__VA_ARGS__); \
> - } \
> - } else { \
> - if (brcmf_msg_level & BRCMF_##level##_VAL) { \
> - pr_debug("%s: " fmt, \
> - __func__, ##__VA_ARGS__); \
> - } \
> - } \
> +#define brcmf_dbg(level, fmt, ...) \
> +do { \
> + if (brcmf_msg_level & BRCMF_##level##_VAL) \
> + pr_debug("%s: " fmt, __func__, ##__VA_ARGS__); \
> } while (0)
next prev parent reply other threads:[~2012-12-05 14:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-05 14:25 [PATCH 00/11] brcm80211: cleanup patches Arend van Spriel
2012-12-05 14:25 ` [PATCH 01/11] brcmfmac: rework bus interface Arend van Spriel
2012-12-05 14:25 ` [PATCH 02/11] brcmsmac: fix uninitialized variable warning on arm architecture Arend van Spriel
2012-12-05 14:25 ` [PATCH 03/11] brcmfmac: use one list of event defintions Arend van Spriel
2012-12-05 14:25 ` [PATCH 04/11] brcmsmac: radio on led support Arend van Spriel
2012-12-05 15:09 ` Hauke Mehrtens
2012-12-05 17:49 ` Arend van Spriel
2012-12-05 21:00 ` Arend van Spriel
2012-12-05 14:25 ` [PATCH 05/11] brcmfmac: error messages should not be suppressed Arend van Spriel
2012-12-05 14:41 ` Joe Perches [this message]
2012-12-05 21:28 ` [PATCH V2 " Arend van Spriel
2012-12-06 6:32 ` Joe Perches
2012-12-06 8:46 ` Arend van Spriel
2012-12-09 18:32 ` Joe Perches
2012-12-07 9:59 ` Arend van Spriel
2012-12-07 9:49 ` [PATCH V3 " Arend van Spriel
2012-12-05 14:25 ` [PATCH 06/11] brcmfmac: consolidate debug macros in wl_cfg80211 Arend van Spriel
2012-12-05 14:26 ` [PATCH 07/11] brcmfmac: replace WL_ERR() with brcmf_err() Arend van Spriel
2012-12-05 14:26 ` [PATCH 08/11] brcmfmac: replace WL_INFO() macro Arend van Spriel
2012-12-05 14:26 ` [PATCH 09/11] brcmfmac: remove WL_TRACE() macro Arend van Spriel
2012-12-05 14:26 ` [PATCH 10/11] brcmfmac: remove WL_SCAN() macro Arend van Spriel
2012-12-05 14:26 ` [PATCH 11/11] brcmfmac: remove WL_CONN() macro Arend van Spriel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1354718489.8320.1.camel@joe-AO722 \
--to=joe@perches.com \
--cc=arend@broadcom.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox