From: Alexander Kuleshov Date: Thu, 27 Aug 2015 12:30:43 +0000 (+0600) Subject: m68k/sun3: Use %pM format specifier to print ethernet address X-Git-Tag: KARO-TX6UL-2015-11-03~129^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bab84fa9cc09dfa9702029f83ea6bf8bf5ae96af;p=karo-tx-linux.git m68k/sun3: Use %pM format specifier to print ethernet address 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 Signed-off-by: Geert Uytterhoeven --- diff --git a/arch/m68k/sun3/idprom.c b/arch/m68k/sun3/idprom.c index c86ac37d1983..cfe9aa422343 100644 --- a/arch/m68k/sun3/idprom.c +++ b/arch/m68k/sun3/idprom.c @@ -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); }