* [PATCH] m68k/sun3: Use %pM format specifier to print ethernet address
@ 2015-08-27 12:30 Alexander Kuleshov
2015-08-27 12:41 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kuleshov @ 2015-08-27 12:30 UTC (permalink / raw)
To: Sam Creasey, Geert Uytterhoeven
Cc: linux-m68k, linux-kernel, Alexander Kuleshov
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>
---
arch/m68k/sun3/idprom.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/m68k/sun3/idprom.c b/arch/m68k/sun3/idprom.c
index c86ac37..cfe9aa4 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);
}
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] m68k/sun3: Use %pM format specifier to print ethernet address
2015-08-27 12:30 [PATCH] m68k/sun3: Use %pM format specifier to print ethernet address Alexander Kuleshov
@ 2015-08-27 12:41 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2015-08-27 12:41 UTC (permalink / raw)
To: Alexander Kuleshov; +Cc: Sam Creasey, linux-m68k, linux-kernel@vger.kernel.org
On Thu, Aug 27, 2015 at 2:30 PM, Alexander Kuleshov
<kuleshovmail@gmail.com> wrote:
> 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>
Thanks, will apply and queue for v4.4.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-27 12:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 12:30 [PATCH] m68k/sun3: Use %pM format specifier to print ethernet address Alexander Kuleshov
2015-08-27 12:41 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox