diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 18:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-27 20:06:18 -0400 |
commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/wireless/hostap/hostap_main.c | |
parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) |
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_main.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 756ab56c1f40..4c36eb2fafd1 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -530,10 +530,6 @@ int hostap_set_auth_algs(local_info_t *local) | |||
530 | void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) | 530 | void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) |
531 | { | 531 | { |
532 | u16 status, fc; | 532 | u16 status, fc; |
533 | DECLARE_MAC_BUF(mac); | ||
534 | DECLARE_MAC_BUF(mac2); | ||
535 | DECLARE_MAC_BUF(mac3); | ||
536 | DECLARE_MAC_BUF(mac4); | ||
537 | 533 | ||
538 | status = __le16_to_cpu(rx->status); | 534 | status = __le16_to_cpu(rx->status); |
539 | 535 | ||
@@ -552,12 +548,11 @@ void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) | |||
552 | fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", | 548 | fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", |
553 | fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); | 549 | fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); |
554 | 550 | ||
555 | printk(KERN_DEBUG " A1=%s A2=%s A3=%s A4=%s\n", | 551 | printk(KERN_DEBUG " A1=%pM A2=%pM A3=%pM A4=%pM\n", |
556 | print_mac(mac, rx->addr1), print_mac(mac2, rx->addr2), | 552 | rx->addr1, rx->addr2, rx->addr3, rx->addr4); |
557 | print_mac(mac3, rx->addr3), print_mac(mac4, rx->addr4)); | ||
558 | 553 | ||
559 | printk(KERN_DEBUG " dst=%s src=%s len=%d\n", | 554 | printk(KERN_DEBUG " dst=%pM src=%pM len=%d\n", |
560 | print_mac(mac, rx->dst_addr), print_mac(mac2, rx->src_addr), | 555 | rx->dst_addr, rx->src_addr, |
561 | __be16_to_cpu(rx->len)); | 556 | __be16_to_cpu(rx->len)); |
562 | } | 557 | } |
563 | 558 | ||
@@ -565,10 +560,6 @@ void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) | |||
565 | void hostap_dump_tx_header(const char *name, const struct hfa384x_tx_frame *tx) | 560 | void hostap_dump_tx_header(const char *name, const struct hfa384x_tx_frame *tx) |
566 | { | 561 | { |
567 | u16 fc; | 562 | u16 fc; |
568 | DECLARE_MAC_BUF(mac); | ||
569 | DECLARE_MAC_BUF(mac2); | ||
570 | DECLARE_MAC_BUF(mac3); | ||
571 | DECLARE_MAC_BUF(mac4); | ||
572 | 563 | ||
573 | printk(KERN_DEBUG "%s: TX status=0x%04x retry_count=%d tx_rate=%d " | 564 | printk(KERN_DEBUG "%s: TX status=0x%04x retry_count=%d tx_rate=%d " |
574 | "tx_control=0x%04x; jiffies=%ld\n", | 565 | "tx_control=0x%04x; jiffies=%ld\n", |
@@ -584,12 +575,11 @@ void hostap_dump_tx_header(const char *name, const struct hfa384x_tx_frame *tx) | |||
584 | fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", | 575 | fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", |
585 | fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); | 576 | fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); |
586 | 577 | ||
587 | printk(KERN_DEBUG " A1=%s A2=%s A3=%s A4=%s\n", | 578 | printk(KERN_DEBUG " A1=%pM A2=%pM A3=%pM A4=%pM\n", |
588 | print_mac(mac, tx->addr1), print_mac(mac2, tx->addr2), | 579 | tx->addr1, tx->addr2, tx->addr3, tx->addr4); |
589 | print_mac(mac3, tx->addr3), print_mac(mac4, tx->addr4)); | ||
590 | 580 | ||
591 | printk(KERN_DEBUG " dst=%s src=%s len=%d\n", | 581 | printk(KERN_DEBUG " dst=%pM src=%pM len=%d\n", |
592 | print_mac(mac, tx->dst_addr), print_mac(mac2, tx->src_addr), | 582 | tx->dst_addr, tx->src_addr, |
593 | __be16_to_cpu(tx->len)); | 583 | __be16_to_cpu(tx->len)); |
594 | } | 584 | } |
595 | 585 | ||