diff mbox

[2/4] mac80211-hwsim: remove dmesg spam about get-survey.

Message ID 1428095590-600-2-git-send-email-greearb@candelatech.com (mailing list archive)
State Changes Requested
Delegated to: Johannes Berg
Headers show

Commit Message

Ben Greear April 3, 2015, 9:13 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

This message just fills up dmesg and/or kernel logs and does
not provide any useful information.

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
 drivers/net/wireless/mac80211_hwsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Joe Perches April 3, 2015, 9:29 p.m. UTC | #1
On Fri, 2015-04-03 at 14:13 -0700, greearb@candelatech.com wrote:
> This message just fills up dmesg and/or kernel logs and does
> not provide any useful information.
[]
> diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
[]
> @@ -1696,7 +1696,7 @@ static int mac80211_hwsim_get_survey(
>  {
>  	struct ieee80211_conf *conf = &hw->conf;
>  
> -	wiphy_debug(hw->wiphy, "%s (idx=%d)\n", __func__, idx);
> +	/* wiphy_debug(hw->wiphy, "%s (idx=%d)\n", __func__, idx); */

It's better, if it's really useless, to delete this
than comment it out.

But it's not on by default anyway, so why it an issue?

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Ben Greear April 3, 2015, 9:38 p.m. UTC | #2
On 04/03/2015 02:29 PM, Joe Perches wrote:
> On Fri, 2015-04-03 at 14:13 -0700, greearb@candelatech.com wrote:
>> This message just fills up dmesg and/or kernel logs and does
>> not provide any useful information.
> []
>> diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
> []
>> @@ -1696,7 +1696,7 @@ static int mac80211_hwsim_get_survey(
>>  {
>>  	struct ieee80211_conf *conf = &hw->conf;
>>  
>> -	wiphy_debug(hw->wiphy, "%s (idx=%d)\n", __func__, idx);
>> +	/* wiphy_debug(hw->wiphy, "%s (idx=%d)\n", __func__, idx); */
> 
> It's better, if it's really useless, to delete this
> than comment it out.
> 
> But it's not on by default anyway, so why it an issue?

It's on on my systems...rest of the wiphy debug is normally useful,
but this particular one is not and spams the logs.

I don't mind removing it entirely, but thought maybe someone would
want an easy way to enable it again for some reason.

Thanks,
Ben
diff mbox

Patch

diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index d0e88b2..5089169 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -1696,7 +1696,7 @@  static int mac80211_hwsim_get_survey(
 {
 	struct ieee80211_conf *conf = &hw->conf;
 
-	wiphy_debug(hw->wiphy, "%s (idx=%d)\n", __func__, idx);
+	/* wiphy_debug(hw->wiphy, "%s (idx=%d)\n", __func__, idx); */
 
 	if (idx != 0)
 		return -ENOENT;