]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
m68k/sun3: Use %pM format specifier to print ethernet address
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Thu, 27 Aug 2015 12:30:43 +0000 (18:30 +0600)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 13 Sep 2015 12:37:26 +0000 (14:37 +0200)
printk() supports %pM format specifier for printing 6-byte MAC/FDDI
addresses in hex notation small buffers, let's use it intead of %x:%x...

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/sun3/idprom.c

index c86ac37d198349bceea1ea94aa340668402cacf0..cfe9aa4223431764f04f8f6fd29f4f00c3cb336c 100644 (file)
@@ -125,8 +125,5 @@ void __init idprom_init(void)
 
        display_system_type(idprom->id_machtype);
 
-       printk("Ethernet address: %x:%x:%x:%x:%x:%x\n",
-                   idprom->id_ethaddr[0], idprom->id_ethaddr[1],
-                   idprom->id_ethaddr[2], idprom->id_ethaddr[3],
-                   idprom->id_ethaddr[4], idprom->id_ethaddr[5]);
+       printk("Ethernet address: %pM\n", idprom->id_ethaddr);
 }