netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ieee80211softmac: fix verbosity when debug disabled
@ 2006-11-04 19:29 Larry Finger
  2006-11-06 10:54 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Larry Finger @ 2006-11-04 19:29 UTC (permalink / raw)
  To: John Linville; +Cc: netdev, johannes

SoftMAC contains a number of debug-type messages that continue to print
even when debugging is turned off. This patch substitutes dprintkl for
printkl for those lines.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---


Index: wireless-2.6/net/ieee80211/softmac/ieee80211softmac_auth.c
===================================================================
--- wireless-2.6.orig/net/ieee80211/softmac/ieee80211softmac_auth.c
+++ wireless-2.6/net/ieee80211/softmac/ieee80211softmac_auth.c
@@ -158,7 +158,7 @@ ieee80211softmac_auth_resp(struct net_de
 	/* Make sure that we've got an auth queue item for this request */
 	if(aq == NULL)
 	{
-		printkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but no queue item exists.\n", MAC_ARG(auth->header.addr2));
+		dprintkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but no queue item exists.\n", MAC_ARG(auth->header.addr2));
 		/* Error #? */
 		return -1;
 	}			
@@ -166,7 +166,7 @@ ieee80211softmac_auth_resp(struct net_de
 	/* Check for out of order authentication */
 	if(!net->authenticating)
 	{
-		printkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but did not request authentication.\n",MAC_ARG(auth->header.addr2));
+		dprintkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but did not request authentication.\n",MAC_ARG(auth->header.addr2));
 		return -1;
 	}
 
@@ -342,7 +342,7 @@ ieee80211softmac_deauth_req(struct ieee8
 	/* Make sure the network is authenticated */
 	if (!net->authenticated)
 	{
-		printkl(KERN_DEBUG PFX "Can't send deauthentication packet, network is not authenticated.\n");
+		dprintkl(KERN_DEBUG PFX "Can't send deauthentication packet, network is not authenticated.\n");
 		/* Error okay? */
 		return -EPERM;
 	}
@@ -376,7 +376,7 @@ ieee80211softmac_deauth_resp(struct net_
 	net = ieee80211softmac_get_network_by_bssid(mac, deauth->header.addr2);
 	
 	if (net == NULL) {
-		printkl(KERN_DEBUG PFX "Received deauthentication packet from "MAC_FMT", but that network is unknown.\n",
+		dprintkl(KERN_DEBUG PFX "Received deauthentication packet from "MAC_FMT", but that network is unknown.\n",
 			MAC_ARG(deauth->header.addr2));
 		return 0;
 	}
@@ -384,7 +384,7 @@ ieee80211softmac_deauth_resp(struct net_
 	/* Make sure the network is authenticated */
 	if(!net->authenticated)
 	{
-		printkl(KERN_DEBUG PFX "Can't perform deauthentication, network is not authenticated.\n");
+		dprintkl(KERN_DEBUG PFX "Can't perform deauthentication, network is not authenticated.\n");
 		/* Error okay? */
 		return -EPERM;
 	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ieee80211softmac: fix verbosity when debug disabled
  2006-11-04 19:29 [PATCH] ieee80211softmac: fix verbosity when debug disabled Larry Finger
@ 2006-11-06 10:54 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2006-11-06 10:54 UTC (permalink / raw)
  To: Larry Finger; +Cc: John Linville, netdev

On Sat, 2006-11-04 at 13:29 -0600, Larry Finger wrote:
> SoftMAC contains a number of debug-type messages that continue to print
> even when debugging is turned off. This patch substitutes dprintkl for
> printkl for those lines.
> 
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>

Fine with me.
Acked-by: Johannes Berg <johannes@sipsolutions.net>


> Index: wireless-2.6/net/ieee80211/softmac/ieee80211softmac_auth.c
> ===================================================================
> --- wireless-2.6.orig/net/ieee80211/softmac/ieee80211softmac_auth.c
> +++ wireless-2.6/net/ieee80211/softmac/ieee80211softmac_auth.c
> @@ -158,7 +158,7 @@ ieee80211softmac_auth_resp(struct net_de
>  	/* Make sure that we've got an auth queue item for this request */
>  	if(aq == NULL)
>  	{
> -		printkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but no queue item exists.\n", MAC_ARG(auth->header.addr2));
> +		dprintkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but no queue item exists.\n", MAC_ARG(auth->header.addr2));
>  		/* Error #? */
>  		return -1;
>  	}			
> @@ -166,7 +166,7 @@ ieee80211softmac_auth_resp(struct net_de
>  	/* Check for out of order authentication */
>  	if(!net->authenticating)
>  	{
> -		printkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but did not request authentication.\n",MAC_ARG(auth->header.addr2));
> +		dprintkl(KERN_DEBUG PFX "Authentication response received from "MAC_FMT" but did not request authentication.\n",MAC_ARG(auth->header.addr2));
>  		return -1;
>  	}
>  
> @@ -342,7 +342,7 @@ ieee80211softmac_deauth_req(struct ieee8
>  	/* Make sure the network is authenticated */
>  	if (!net->authenticated)
>  	{
> -		printkl(KERN_DEBUG PFX "Can't send deauthentication packet, network is not authenticated.\n");
> +		dprintkl(KERN_DEBUG PFX "Can't send deauthentication packet, network is not authenticated.\n");
>  		/* Error okay? */
>  		return -EPERM;
>  	}
> @@ -376,7 +376,7 @@ ieee80211softmac_deauth_resp(struct net_
>  	net = ieee80211softmac_get_network_by_bssid(mac, deauth->header.addr2);
>  	
>  	if (net == NULL) {
> -		printkl(KERN_DEBUG PFX "Received deauthentication packet from "MAC_FMT", but that network is unknown.\n",
> +		dprintkl(KERN_DEBUG PFX "Received deauthentication packet from "MAC_FMT", but that network is unknown.\n",
>  			MAC_ARG(deauth->header.addr2));
>  		return 0;
>  	}
> @@ -384,7 +384,7 @@ ieee80211softmac_deauth_resp(struct net_
>  	/* Make sure the network is authenticated */
>  	if(!net->authenticated)
>  	{
> -		printkl(KERN_DEBUG PFX "Can't perform deauthentication, network is not authenticated.\n");
> +		dprintkl(KERN_DEBUG PFX "Can't perform deauthentication, network is not authenticated.\n");
>  		/* Error okay? */
>  		return -EPERM;
>  	}
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-06 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-04 19:29 [PATCH] ieee80211softmac: fix verbosity when debug disabled Larry Finger
2006-11-06 10:54 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).