diff options
author | Joe Perches <joe@perches.com> | 2015-06-14 19:01:30 -0700 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2015-07-09 14:17:22 +0200 |
commit | 7a1436d58027f84ae2167b5ec359c15cb1d80837 (patch) | |
tree | 040b48e77e22573d8ca7754d6a1c6866a02ffa5b /arch/arm/mach-orion5x/tsx09-common.c | |
parent | a17683ba3d240612ef52bcbf7f4db91f1e457735 (diff) | |
download | op-kernel-dev-7a1436d58027f84ae2167b5ec359c15cb1d80837.zip op-kernel-dev-7a1436d58027f84ae2167b5ec359c15cb1d80837.tar.gz |
ARM: orion5x: Use vsprintf %pM extension
Format mac addresses with the normal kernel extension.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-orion5x/tsx09-common.c')
-rw-r--r-- | arch/arm/mach-orion5x/tsx09-common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-orion5x/tsx09-common.c b/arch/arm/mach-orion5x/tsx09-common.c index 7189827..24b2959 100644 --- a/arch/arm/mach-orion5x/tsx09-common.c +++ b/arch/arm/mach-orion5x/tsx09-common.c @@ -101,9 +101,7 @@ static int __init qnap_tsx09_check_mac_addr(const char *addr_str) addr[i] = byte; } - printk(KERN_INFO "tsx09: found ethernet mac address "); - for (i = 0; i < 6; i++) - printk("%.2x%s", addr[i], (i < 5) ? ":" : ".\n"); + printk(KERN_INFO "tsx09: found ethernet mac address %pM\n", addr); memcpy(qnap_tsx09_eth_data.mac_addr, addr, 6); |