diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2010-09-11 10:17:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-16 15:26:10 -0400 |
commit | aa4d282cba3b358bab1507895910d872f8fa7baf (patch) | |
tree | c6384da415be8a210e4daac8dcd1649077478f99 /drivers/staging/rt2860/common | |
parent | ef6c3c6e53ba4286140ea7d582d81f08d43dc7d2 (diff) |
staging: rt2860: change plain format of mac address to %pM in *printf()
There are many locations where MAC or BSSID is printed. The plain format
is used in such places. *printf() in kernel recognizes
%pM, %pMF and %pm format parameters to print out 6-byte array as MAC
address. This patch changes plain format to custom %pM which is widely
used in kernel.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2860/common')
-rw-r--r-- | drivers/staging/rt2860/common/ba_action.c | 4 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/cmm_mac_usb.c | 5 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/cmm_wpa.c | 4 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/mlme.c | 7 | ||||
-rw-r--r-- | drivers/staging/rt2860/common/rtmp_init.c | 12 |
5 files changed, 11 insertions, 21 deletions
diff --git a/drivers/staging/rt2860/common/ba_action.c b/drivers/staging/rt2860/common/ba_action.c index 174f2a73a1b..3f71c502855 100644 --- a/drivers/staging/rt2860/common/ba_action.c +++ b/drivers/staging/rt2860/common/ba_action.c | |||
@@ -654,8 +654,8 @@ BOOLEAN BARecSessionAdd(struct rt_rtmp_adapter *pAd, | |||
654 | } else { | 654 | } else { |
655 | Status = FALSE; | 655 | Status = FALSE; |
656 | DBGPRINT(RT_DEBUG_TRACE, | 656 | DBGPRINT(RT_DEBUG_TRACE, |
657 | ("Can't Accept ADDBA for %02x:%02x:%02x:%02x:%02x:%02x TID = %d\n", | 657 | ("Can't Accept ADDBA for %pM TID = %d\n", |
658 | PRINT_MAC(pEntry->Addr), TID)); | 658 | &pEntry->Addr[0], TID)); |
659 | } | 659 | } |
660 | return (Status); | 660 | return (Status); |
661 | } | 661 | } |
diff --git a/drivers/staging/rt2860/common/cmm_mac_usb.c b/drivers/staging/rt2860/common/cmm_mac_usb.c index 8aec70fc20d..d08abf794c8 100644 --- a/drivers/staging/rt2860/common/cmm_mac_usb.c +++ b/drivers/staging/rt2860/common/cmm_mac_usb.c | |||
@@ -663,10 +663,7 @@ int RTUSBWriteHWMACAddress(struct rt_rtmp_adapter *pAd) | |||
663 | StaMacReg1.field.Byte5 = pAd->CurrentAddress[5]; | 663 | StaMacReg1.field.Byte5 = pAd->CurrentAddress[5]; |
664 | StaMacReg1.field.U2MeMask = 0xff; | 664 | StaMacReg1.field.U2MeMask = 0xff; |
665 | DBGPRINT_RAW(RT_DEBUG_TRACE, | 665 | DBGPRINT_RAW(RT_DEBUG_TRACE, |
666 | ("Local MAC = %02x:%02x:%02x:%02x:%02x:%02x\n", | 666 | ("Local MAC = %pM\n", &pAd->CurrentAddress[0])); |
667 | pAd->CurrentAddress[0], pAd->CurrentAddress[1], | ||
668 | pAd->CurrentAddress[2], pAd->CurrentAddress[3], | ||
669 | pAd->CurrentAddress[4], pAd->CurrentAddress[5])); | ||
670 | 667 | ||
671 | RTUSBWriteMACRegister(pAd, MAC_ADDR_DW0, StaMacReg0.word); | 668 | RTUSBWriteMACRegister(pAd, MAC_ADDR_DW0, StaMacReg0.word); |
672 | RTUSBWriteMACRegister(pAd, MAC_ADDR_DW1, StaMacReg1.word); | 669 | RTUSBWriteMACRegister(pAd, MAC_ADDR_DW1, StaMacReg1.word); |
diff --git a/drivers/staging/rt2860/common/cmm_wpa.c b/drivers/staging/rt2860/common/cmm_wpa.c index 9414aa34437..78ca4ed46d9 100644 --- a/drivers/staging/rt2860/common/cmm_wpa.c +++ b/drivers/staging/rt2860/common/cmm_wpa.c | |||
@@ -221,8 +221,8 @@ void WpaEAPOLKeyAction(struct rt_rtmp_adapter *pAd, struct rt_mlme_queue_elem *E | |||
221 | break; | 221 | break; |
222 | 222 | ||
223 | DBGPRINT(RT_DEBUG_TRACE, | 223 | DBGPRINT(RT_DEBUG_TRACE, |
224 | ("Receive EAPoL-Key frame from STA %02X-%02X-%02X-%02X-%02X-%02X\n", | 224 | ("Receive EAPoL-Key frame from STA %pMF\n", |
225 | PRINT_MAC(pEntry->Addr))); | 225 | &pEntry->Addr[0])); |
226 | 226 | ||
227 | if (((pEapol_packet->ProVer != EAPOL_VER) | 227 | if (((pEapol_packet->ProVer != EAPOL_VER) |
228 | && (pEapol_packet->ProVer != EAPOL_VER2)) | 228 | && (pEapol_packet->ProVer != EAPOL_VER2)) |
diff --git a/drivers/staging/rt2860/common/mlme.c b/drivers/staging/rt2860/common/mlme.c index 9fc34a8f218..e51403315fe 100644 --- a/drivers/staging/rt2860/common/mlme.c +++ b/drivers/staging/rt2860/common/mlme.c | |||
@@ -1536,10 +1536,9 @@ void MlmeAutoReconnectLastSSID(struct rt_rtmp_adapter *pAd) | |||
1536 | { | 1536 | { |
1537 | if (pAd->StaCfg.bAutoConnectByBssid) { | 1537 | if (pAd->StaCfg.bAutoConnectByBssid) { |
1538 | DBGPRINT(RT_DEBUG_TRACE, | 1538 | DBGPRINT(RT_DEBUG_TRACE, |
1539 | ("Driver auto reconnect to last OID_802_11_BSSID setting - %02X:%02X:%02X:%02X:%02X:%02X\n", | 1539 | ("Driver auto reconnect to last OID_802_11_BSSID " |
1540 | pAd->MlmeAux.Bssid[0], pAd->MlmeAux.Bssid[1], | 1540 | "setting - %pM\n", |
1541 | pAd->MlmeAux.Bssid[2], pAd->MlmeAux.Bssid[3], | 1541 | &pAd->MlmeAux.Bssid[0])); |
1542 | pAd->MlmeAux.Bssid[4], pAd->MlmeAux.Bssid[5])); | ||
1543 | 1542 | ||
1544 | pAd->MlmeAux.Channel = pAd->CommonCfg.Channel; | 1543 | pAd->MlmeAux.Channel = pAd->CommonCfg.Channel; |
1545 | MlmeEnqueue(pAd, | 1544 | MlmeEnqueue(pAd, |
diff --git a/drivers/staging/rt2860/common/rtmp_init.c b/drivers/staging/rt2860/common/rtmp_init.c index ff9f87c6be7..afeb5282074 100644 --- a/drivers/staging/rt2860/common/rtmp_init.c +++ b/drivers/staging/rt2860/common/rtmp_init.c | |||
@@ -749,13 +749,7 @@ void NICReadEEPROMParameters(struct rt_rtmp_adapter *pAd, u8 *mac_addr) | |||
749 | /* pAd->PermanentAddress[5] = RandomByte(pAd)&0xf8; */ | 749 | /* pAd->PermanentAddress[5] = RandomByte(pAd)&0xf8; */ |
750 | 750 | ||
751 | DBGPRINT_RAW(RT_DEBUG_TRACE, | 751 | DBGPRINT_RAW(RT_DEBUG_TRACE, |
752 | ("E2PROM MAC: =%02x:%02x:%02x:%02x:%02x:%02x\n", | 752 | ("E2PROM MAC: =%pM\n", &pAd->PermanentAddress[0])); |
753 | pAd->PermanentAddress[0], | ||
754 | pAd->PermanentAddress[1], | ||
755 | pAd->PermanentAddress[2], | ||
756 | pAd->PermanentAddress[3], | ||
757 | pAd->PermanentAddress[4], | ||
758 | pAd->PermanentAddress[5])); | ||
759 | if (pAd->bLocalAdminMAC == FALSE) { | 753 | if (pAd->bLocalAdminMAC == FALSE) { |
760 | MAC_DW0_STRUC csr2; | 754 | MAC_DW0_STRUC csr2; |
761 | MAC_DW1_STRUC csr3; | 755 | MAC_DW1_STRUC csr3; |
@@ -772,8 +766,8 @@ void NICReadEEPROMParameters(struct rt_rtmp_adapter *pAd, u8 *mac_addr) | |||
772 | csr3.field.U2MeMask = 0xff; | 766 | csr3.field.U2MeMask = 0xff; |
773 | RTMP_IO_WRITE32(pAd, MAC_ADDR_DW1, csr3.word); | 767 | RTMP_IO_WRITE32(pAd, MAC_ADDR_DW1, csr3.word); |
774 | DBGPRINT_RAW(RT_DEBUG_TRACE, | 768 | DBGPRINT_RAW(RT_DEBUG_TRACE, |
775 | ("E2PROM MAC: =%02x:%02x:%02x:%02x:%02x:%02x\n", | 769 | ("E2PROM MAC: =%pM\n", |
776 | PRINT_MAC(pAd->PermanentAddress))); | 770 | &pAd->PermanentAddress[0])); |
777 | } | 771 | } |
778 | } | 772 | } |
779 | 773 | ||