mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
zd1211rw: use %*ph to print small buffer
Use %*ph format to print small buffer as hex string. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
0e48b86d9a
commit
d13b12c30c
@ -41,8 +41,7 @@ void zd_chip_clear(struct zd_chip *chip)
|
||||
static int scnprint_mac_oui(struct zd_chip *chip, char *buffer, size_t size)
|
||||
{
|
||||
u8 *addr = zd_mac_get_perm_addr(zd_chip_to_mac(chip));
|
||||
return scnprintf(buffer, size, "%02x-%02x-%02x",
|
||||
addr[0], addr[1], addr[2]);
|
||||
return scnprintf(buffer, size, "%3phD", addr);
|
||||
}
|
||||
|
||||
/* Prints an identifier line, which will support debugging. */
|
||||
|
Loading…
Reference in New Issue
Block a user