wireless: ath9k: use %pM to print MAC
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 Jul 2011 13:34:30 +0000 (16:34 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jul 2011 19:04:39 +0000 (15:04 -0400)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: ath9k-devel@lists.ath9k.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_debug.c

index aa48b3a..d3ff33c 100644 (file)
@@ -623,11 +623,8 @@ static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf,
                                pBase9287->openLoopPwrCntl);
        }
 
-       len += snprintf(buf + len, size - len,
-                       "%20s : %02X:%02X:%02X:%02X:%02X:%02X\n",
-                       "MacAddress",
-                       pBase->macAddr[0], pBase->macAddr[1], pBase->macAddr[2],
-                       pBase->macAddr[3], pBase->macAddr[4], pBase->macAddr[5]);
+       len += snprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
+                       pBase->macAddr);
        if (len > size)
                len = size;