From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
Andy Shevchenko <andy.shevchenko@gmail.com>
Subject: [PATCHv2 02/10] staging: ath6kl: use '%pM' format to print MAC address
Date: Mon, 13 Sep 2010 11:40:26 +0300 [thread overview]
Message-ID: <c25e54702c022f02a8a4d6061231aec9a4ff3cdf.1284316738.git.andy.shevchenko@gmail.com> (raw)
In-Reply-To: <8ad2522ae82e753fcfa9fa9726d2a301e7b8b987.1284316733.git.andy.shevchenko@gmail.com>
In-Reply-To: <8ad2522ae82e753fcfa9fa9726d2a301e7b8b987.1284316733.git.andy.shevchenko@gmail.com>
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
---
drivers/staging/ath6kl/os/linux/ar6000_drv.c | 10 +++-------
drivers/staging/ath6kl/os/linux/cfg80211.c | 20 +++++++-------------
drivers/staging/ath6kl/wmi/wmi.c | 8 +++-----
3 files changed, 13 insertions(+), 25 deletions(-)
diff --git a/drivers/staging/ath6kl/os/linux/ar6000_drv.c b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
index ff7976e..64ba958 100644
--- a/drivers/staging/ath6kl/os/linux/ar6000_drv.c
+++ b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
@@ -956,12 +956,10 @@ ar6000_softmac_update(AR_SOFTC_T *ar, A_UCHAR *eeprom_data, size_t size)
ptr_mac = (A_UINT8 *)((A_UCHAR *)eeprom_data + AR6003_MAC_ADDRESS_OFFSET);
break;
default:
- AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Invalid Target Type \n"));
+ AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Invalid Target Type\n"));
return;
}
- printk("MAC from EEPROM %02X:%02X:%02X:%02X:%02X:%02X\n",
- ptr_mac[0], ptr_mac[1], ptr_mac[2],
- ptr_mac[3], ptr_mac[4], ptr_mac[5]);
+ printk(KERN_DEBUG "MAC from EEPROM %pM\n", ptr_mac);
/* create a random MAC in case we cannot read file from system */
ptr_mac[0] = 0;
@@ -990,9 +988,7 @@ ar6000_softmac_update(AR_SOFTC_T *ar, A_UCHAR *eeprom_data, size_t size)
}
A_RELEASE_FIRMWARE(softmac_entry);
}
- printk("MAC from %s %02X:%02X:%02X:%02X:%02X:%02X\n", source,
- ptr_mac[0], ptr_mac[1], ptr_mac[2],
- ptr_mac[3], ptr_mac[4], ptr_mac[5]);
+ printk(KERN_DEBUG "MAC from %s %pM\n", source, ptr_mac);
calculate_crc(ar->arTargetType, eeprom_data);
}
#endif /* SOFTMAC_FILE_USED */
diff --git a/drivers/staging/ath6kl/os/linux/cfg80211.c b/drivers/staging/ath6kl/os/linux/cfg80211.c
index 7a3784d..a8b9241 100644
--- a/drivers/staging/ath6kl/os/linux/cfg80211.c
+++ b/drivers/staging/ath6kl/os/linux/cfg80211.c
@@ -544,13 +544,10 @@ ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel,
ibss_channel = ieee80211_get_channel(ar->wdev->wiphy, (int)channel);
- AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
- ("%s: inform bss with bssid %02x:%02x:%02x:%02x:%02x:%02x "\
- "channel %d beaconInterval %d capability 0x%x\n",
- __func__,
- mgmt->bssid[0], mgmt->bssid[1], mgmt->bssid[2],
- mgmt->bssid[3], mgmt->bssid[4], mgmt->bssid[5],
- ibss_channel->hw_value, beaconInterval, capability));
+ AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
+ ("%s: inform bss with bssid %pM channel %d beaconInterval %d "
+ "capability 0x%x\n", __func__, mgmt->bssid,
+ ibss_channel->hw_value, beaconInterval, capability));
bss = cfg80211_inform_bss_frame(ar->wdev->wiphy,
ibss_channel, mgmt,
@@ -715,12 +712,9 @@ ar6k_cfg80211_scan_node(void *arg, bss_t *ni)
channel = ieee80211_get_channel(wiphy, freq);
signal = ni->ni_snr * 100;
- AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
- ("%s: bssid %02x:%02x:%02x:%02x:%02x:%02x channel %d freq %d size %d\n",
- __func__,
- mgmt->bssid[0], mgmt->bssid[1], mgmt->bssid[2],
- mgmt->bssid[3], mgmt->bssid[4], mgmt->bssid[5],
- channel->hw_value, freq, size));
+ AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
+ ("%s: bssid %pM channel %d freq %d size %d\n", __func__,
+ mgmt->bssid, channel->hw_value, freq, size));
cfg80211_inform_bss_frame(wiphy, channel, mgmt,
le16_to_cpu(size),
signal, GFP_KERNEL);
diff --git a/drivers/staging/ath6kl/wmi/wmi.c b/drivers/staging/ath6kl/wmi/wmi.c
index d14bad2..7800778 100644
--- a/drivers/staging/ath6kl/wmi/wmi.c
+++ b/drivers/staging/ath6kl/wmi/wmi.c
@@ -1456,11 +1456,9 @@ wmi_bssInfo_event_rx(struct wmi_t *wmip, A_UINT8 *datap, int len)
buf = datap + sizeof(WMI_BSS_INFO_HDR);
len -= sizeof(WMI_BSS_INFO_HDR);
- A_DPRINTF(DBG_WMI2, (DBGFMT "bssInfo event - ch %u, rssi %02x, "
- "bssid \"%02x:%02x:%02x:%02x:%02x:%02x\"\n", DBGARG,
- bih->channel, (unsigned char) bih->rssi, bih->bssid[0],
- bih->bssid[1], bih->bssid[2], bih->bssid[3], bih->bssid[4],
- bih->bssid[5]));
+ A_DPRINTF(DBG_WMI2, (DBGFMT "bssInfo event - ch %u, rssi %02x, "
+ "bssid \"%pM\"\n", DBGARG, bih->channel,
+ (unsigned char) bih->rssi, bih->bssid));
if(wps_enable && (bih->frameType == PROBERESP_FTYPE) ) {
wmi_node_return(wmip, bss);
--
1.7.2.2
next prev parent reply other threads:[~2010-09-13 8:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-13 8:40 [PATCHv2 01/10] staging: rt2860: change plain format of mac address to %pM in *printf() Andy Shevchenko
2010-09-13 8:40 ` Andy Shevchenko [this message]
2010-09-13 8:40 ` [PATCHv2 03/10] staging: brcm80211: use '%pM' format to print MAC address Andy Shevchenko
2010-09-13 8:40 ` [PATCHv2 04/10] staging: cxt1e1: use '%pMF' " Andy Shevchenko
2010-09-13 8:40 ` [PATCHv2 05/10] staging: octeon: use '%pM' " Andy Shevchenko
2010-09-13 8:40 ` [PATCHv2 06/10] staging: otus: " Andy Shevchenko
2010-09-13 8:40 ` [PATCHv2 07/10] staging: rt2870: " Andy Shevchenko
2010-09-13 8:40 ` [PATCHv2 08/10] staging: rtl8712: " Andy Shevchenko
2010-09-13 8:40 ` [PATCHv2 09/10] staging: vt6655: " Andy Shevchenko
2010-09-13 8:40 ` [PATCHv2 10/10] staging: wlags49_h2: " Andy Shevchenko
2010-09-16 19:32 ` [PATCHv2 01/10] staging: rt2860: change plain format of mac address to %pM in *printf() Greg KH
2010-09-16 22:26 ` Andy Shevchenko
2010-09-16 22:45 ` Andy Shevchenko
2010-09-16 22:53 ` Greg KH
2010-09-17 8:24 ` [PATCH 1/9] staging: rt2860: '&pointer[0]' to 'pointer' fix Andy Shevchenko
2010-09-17 8:24 ` [PATCH 2/9] staging: ath6kl: " Andy Shevchenko
2010-09-17 8:24 ` [PATCH 3/9] staging: cxt1e1: " Andy Shevchenko
2010-09-17 8:24 ` [PATCH 4/9] staging: octeon: " Andy Shevchenko
2010-09-17 8:24 ` [PATCH 5/9] staging: otus: " Andy Shevchenko
2010-09-17 8:24 ` [PATCH 6/9] staging: rt2870: " Andy Shevchenko
2010-09-17 8:24 ` [PATCH 7/9] staging: rtl8712: " Andy Shevchenko
2010-09-17 8:24 ` [PATCH 8/9] staging: vt6655: " Andy Shevchenko
2010-09-17 8:24 ` [PATCH 9/9] staging: wlags49_h2: " Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c25e54702c022f02a8a4d6061231aec9a4ff3cdf.1284316738.git.andy.shevchenko@gmail.com \
--to=andy.shevchenko@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®