Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1214522 > unrolled thread

[PATCH] m68k/sun3: Use %pM format specifier to print ethernet address

Started byAlexander Kuleshov <kuleshovmail@gmail.com>
First post2015-08-27 14:40 +0200
Last post2015-08-27 14:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] m68k/sun3: Use %pM format specifier to print ethernet address Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-08-27 14:40 +0200
    Re: [PATCH] m68k/sun3: Use %pM format specifier to print ethernet address Geert Uytterhoeven <geert@linux-m68k.org> - 2015-08-27 14:50 +0200

#1214522 — [PATCH] m68k/sun3: Use %pM format specifier to print ethernet address

FromAlexander Kuleshov <kuleshovmail@gmail.com>
Date2015-08-27 14:40 +0200
Subject[PATCH] m68k/sun3: Use %pM format specifier to print ethernet address
Message-ID<q24Dg-4x6-29@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1214534

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2015-08-27 14:50 +0200
Message-ID<q24MX-4IH-31@gated-at.bofh.it>
In reply to#1214522
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web