diff options
| author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 15:59:26 -0700 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-10-27 17:06:18 -0700 | 
| commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
| tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/wireless/hostap/hostap_80211_tx.c | |
| parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) | |
| download | olio-linux-3.10-e174961ca1a0b28f7abf0be47973ad57cb74e5f0.tar.xz olio-linux-3.10-e174961ca1a0b28f7abf0be47973ad57cb74e5f0.zip  | |
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were
a few things that had conflicts which I have just dropped for
now, no harm done.
I've built an allyesconfig with this and looked at the files
that weren't built very carefully, but it's a huge patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_80211_tx.c')
| -rw-r--r-- | drivers/net/wireless/hostap/hostap_80211_tx.c | 15 | 
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211_tx.c b/drivers/net/wireless/hostap/hostap_80211_tx.c index 921c984416f..075247188e6 100644 --- a/drivers/net/wireless/hostap/hostap_80211_tx.c +++ b/drivers/net/wireless/hostap/hostap_80211_tx.c @@ -17,7 +17,6 @@ void hostap_dump_tx_80211(const char *name, struct sk_buff *skb)  {  	struct ieee80211_hdr_4addr *hdr;  	u16 fc; -	DECLARE_MAC_BUF(mac);  	hdr = (struct ieee80211_hdr_4addr *) skb->data; @@ -41,11 +40,11 @@ void hostap_dump_tx_80211(const char *name, struct sk_buff *skb)  	printk(" dur=0x%04x seq=0x%04x\n", le16_to_cpu(hdr->duration_id),  	       le16_to_cpu(hdr->seq_ctl)); -	printk(KERN_DEBUG "   A1=%s", print_mac(mac, hdr->addr1)); -	printk(" A2=%s", print_mac(mac, hdr->addr2)); -	printk(" A3=%s", print_mac(mac, hdr->addr3)); +	printk(KERN_DEBUG "   A1=%pM", hdr->addr1); +	printk(" A2=%pM", hdr->addr2); +	printk(" A3=%pM", hdr->addr3);  	if (skb->len >= 30) -		printk(" A4=%s", print_mac(mac, hdr->addr4)); +		printk(" A4=%pM", hdr->addr4);  	printk("\n");  } @@ -328,10 +327,8 @@ static struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb,  		hdr = (struct ieee80211_hdr_4addr *) skb->data;  		if (net_ratelimit()) {  			printk(KERN_DEBUG "%s: TKIP countermeasures: dropped " -			       "TX packet to " MAC_FMT "\n", -			       local->dev->name, -			       hdr->addr1[0], hdr->addr1[1], hdr->addr1[2], -			       hdr->addr1[3], hdr->addr1[4], hdr->addr1[5]); +			       "TX packet to %pM\n", +			       local->dev->name, hdr->addr1);  		}  		kfree_skb(skb);  		return NULL;  |