Commit 7a1436d5 authored by Joe Perches's avatar Joe Perches Committed by Gregory CLEMENT

ARM: orion5x: Use vsprintf %pM extension

Format mac addresses with the normal kernel extension.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
parent a17683ba
...@@ -236,9 +236,7 @@ static int __init dns323_read_mac_addr(void) ...@@ -236,9 +236,7 @@ static int __init dns323_read_mac_addr(void)
} }
iounmap(mac_page); iounmap(mac_page);
printk("DNS-323: Found ethernet MAC address: "); printk("DNS-323: Found ethernet MAC address: %pM\n", addr);
for (i = 0; i < 6; i++)
printk("%.2x%s", addr[i], (i < 5) ? ":" : ".\n");
memcpy(dns323_eth_data.mac_addr, addr, 6); memcpy(dns323_eth_data.mac_addr, addr, 6);
......
...@@ -101,9 +101,7 @@ static int __init qnap_tsx09_check_mac_addr(const char *addr_str) ...@@ -101,9 +101,7 @@ static int __init qnap_tsx09_check_mac_addr(const char *addr_str)
addr[i] = byte; addr[i] = byte;
} }
printk(KERN_INFO "tsx09: found ethernet mac address "); printk(KERN_INFO "tsx09: found ethernet mac address %pM\n", addr);
for (i = 0; i < 6; i++)
printk("%.2x%s", addr[i], (i < 5) ? ":" : ".\n");
memcpy(qnap_tsx09_eth_data.mac_addr, addr, 6); memcpy(qnap_tsx09_eth_data.mac_addr, addr, 6);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment