Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1214565
| From | Alexander Kuleshov <kuleshovmail@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] staging/rtl8723au: Use %pM format specifier to print mac address |
| Date | 2015-08-27 15:20 +0200 |
| Message-ID | <q25fY-5vZ-25@gated-at.bofh.it> (permalink) |
| References | <q256h-5kI-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
printk() supports %pM format specifier for printing 6-byte MAC/FDDI
addresses in hex notation small buffers, let's use it intead of %x:%x...
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
index be9a3d5..fca22ba 100644
--- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
@@ -5934,11 +5934,8 @@ int set_stakey_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
macid = aid+1; */
cam_id = psta->mac_id + 3;
- DBG_8723A("Write CAM, mac_addr =%x:%x:%x:%x:%x:%x, "
- "cam_entry =%d\n", pparm->addr[0],
- pparm->addr[1], pparm->addr[2],
- pparm->addr[3], pparm->addr[4],
- pparm->addr[5], cam_id);
+ DBG_8723A("Write CAM, mac_addr =%pM, "
+ "cam_entry =%d\n", pparm->addr, cam_id);
rtl8723a_cam_write(padapter, cam_id, ctrl,
pparm->addr, pparm->key);
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] drivers/staging: Use %pM format specifier to print mac address Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-08-27 15:10 +0200
[PATCH 3/3] staging/wilc1000: Use %pM format specifier to print mac address Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-08-27 15:20 +0200
Re: [PATCH 3/3] staging/wilc1000: Use %pM format specifier to print mac address Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-09-03 03:40 +0200
[PATCH 2/3] staging/rtl8723au: Use %pM format specifier to print mac address Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-08-27 15:20 +0200
Re: [PATCH 2/3] staging/rtl8723au: Use %pM format specifier to print mac address Jes Sorensen <Jes.Sorensen@redhat.com> - 2015-08-27 15:20 +0200
csiph-web