wireless: ath9k: use %pM to print MAC
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>
This commit is contained in:
Родитель
1d15b5f2d3
Коммит
8f895026e8
|
@ -623,11 +623,8 @@ static ssize_t read_file_base_eeprom(struct file *file, char __user *user_buf,
|
||||||
pBase9287->openLoopPwrCntl);
|
pBase9287->openLoopPwrCntl);
|
||||||
}
|
}
|
||||||
|
|
||||||
len += snprintf(buf + len, size - len,
|
len += snprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress",
|
||||||
"%20s : %02X:%02X:%02X:%02X:%02X:%02X\n",
|
pBase->macAddr);
|
||||||
"MacAddress",
|
|
||||||
pBase->macAddr[0], pBase->macAddr[1], pBase->macAddr[2],
|
|
||||||
pBase->macAddr[3], pBase->macAddr[4], pBase->macAddr[5]);
|
|
||||||
if (len > size)
|
if (len > size)
|
||||||
len = size;
|
len = size;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче