staging: csr: print mac address with %pM
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 Aug 2012 16:05:42 +0000 (19:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 01:56:35 +0000 (18:56 -0700)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/wext_events.c

index d356887ac4c603d02cf229a0388f08f5e3b7e1cc..9860ea30da2504ae301d8ff7eb382a60078b8066 100644 (file)
@@ -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);