diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-08-02 16:05:42 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-14 01:56:35 (GMT) |
commit | 785526207f4cb7a70a9f3f0b9f991ec9ca63c72d (patch) | |
tree | 5a1971f6353ee2276288510f7ce81b5f47b6ff04 /drivers/staging/csr | |
parent | 5b47f3cbf03f69efc24b34200d6b432fe354b8d5 (diff) | |
download | linux-fsl-qoriq-785526207f4cb7a70a9f3f0b9f991ec9ca63c72d.tar.xz |
staging: csr: print mac address with %pM
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/csr')
-rw-r--r-- | drivers/staging/csr/wext_events.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/csr/wext_events.c b/drivers/staging/csr/wext_events.c index d356887..9860ea3 100644 --- a/drivers/staging/csr/wext_events.c +++ b/drivers/staging/csr/wext_events.c @@ -194,11 +194,9 @@ _send_michaelmicfailure_event(struct net_device *dev, union iwreq_data wrqu; char buf[128]; - sprintf(buf, - "MLME-MICHAELMICFAILURE.indication(keyid=%d %scast addr=%02x:%02x:%02x:%02x:%02x:%02x)", - key_idx, (key_type == CSR_GROUP) ? "broad" : "uni", - macaddr[0], macaddr[1], macaddr[2], - macaddr[3], macaddr[4], macaddr[5]); + sprintf(buf, + "MLME-MICHAELMICFAILURE.indication(keyid=%d %scast addr=%pM)", + key_idx, (key_type == CSR_GROUP) ? "broad" : "uni", macaddr); memset(&wrqu, 0, sizeof(wrqu)); wrqu.data.length = strlen(buf); wireless_send_event(dev, IWEVCUSTOM, &wrqu, buf); |