m68k: Use vsprintf %pM extension
authorJoe Perches <joe@perches.com>
Mon, 15 Jun 2015 02:01:37 +0000 (19:01 -0700)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 16 Jun 2015 06:45:38 +0000 (16:45 +1000)
Format mac addresses with the normal kernel extension.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/68000/m68EZ328.c
arch/m68k/68000/m68VZ328.c
arch/m68k/68360/config.c

index 21952906e9e218b1be13abec33429e0f2d4c8752..e6ab321f93f832e9b9e070f8da4aa00f856b82d5 100644 (file)
@@ -62,8 +62,7 @@ void __init config_BSP(char *command, int len)
 #ifdef CONFIG_UCSIMM
   printk(KERN_INFO "uCsimm serial string [%s]\n",getserialnum());
   p = cs8900a_hwaddr = gethwaddr(0);
-  printk(KERN_INFO "uCsimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
-         p[0], p[1], p[2], p[3], p[4], p[5]);
+  printk(KERN_INFO "uCsimm hwaddr %pM\n", p);
 
   p = getbenv("APPEND");
   if (p) strcpy(p,command);
index 0e5e5a10a02126b69f609ac6d4b1590fe2064495..1154bdb220a022cdf2d850138a9e74e8dec74bdf 100644 (file)
@@ -152,8 +152,7 @@ static void __init init_hardware(char *command, int size)
 
        printk(KERN_INFO "uCdimm serial string [%s]\n", getserialnum());
        p = cs8900a_hwaddr = gethwaddr(0);
-       printk(KERN_INFO "uCdimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
-               p[0], p[1], p[2], p[3], p[4], p[5]);
+       printk(KERN_INFO "uCdimm hwaddr %pM\n", p);
        p = getbenv("APPEND");
        if (p)
                strcpy(p, command);
index fd1f948c71291a732a86caf4cfee77cdfbe21749..b65fe4eed38e59b214eca3c4a79d0367a192e8a2 100644 (file)
@@ -154,8 +154,7 @@ void __init config_BSP(char *command, int len)
 #if defined(CONFIG_UCQUICC) && 0
   printk(KERN_INFO "uCquicc serial string [%s]\n",getserialnum());
   p = scc1_hwaddr = gethwaddr(0);
-  printk(KERN_INFO "uCquicc hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
-         p[0], p[1], p[2], p[3], p[4], p[5]);
+  printk(KERN_INFO "uCquicc hwaddr %pM\n", p);
 
   p = getbenv("APPEND");
   if (p)