]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: orion5x: Use vsprintf %pM extension
authorJoe Perches <joe@perches.com>
Mon, 15 Jun 2015 02:01:30 +0000 (19:01 -0700)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 9 Jul 2015 12:17:22 +0000 (14:17 +0200)
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>
arch/arm/mach-orion5x/dns323-setup.c
arch/arm/mach-orion5x/tsx09-common.c

index 09d2a26985da7b3758a35f15075a92d7e90e214e..f267e58a82833b45647608aea78990bc5e673a0a 100644 (file)
@@ -236,9 +236,7 @@ static int __init dns323_read_mac_addr(void)
        }
 
        iounmap(mac_page);
-       printk("DNS-323: Found ethernet MAC address: ");
-       for (i = 0; i < 6; i++)
-               printk("%.2x%s", addr[i], (i < 5) ? ":" : ".\n");
+       printk("DNS-323: Found ethernet MAC address: %pM\n", addr);
 
        memcpy(dns323_eth_data.mac_addr, addr, 6);
 
index 7189827d641d09a0222ec90480c115227d123fc8..24b2959719faf1d93e240436cc486463cf52a6f7 100644 (file)
@@ -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);