Skip to content

Commit

Permalink
m68k: Use vsprintf %pM extension
Browse files Browse the repository at this point in the history
Format mac addresses with the normal kernel extension.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Joe Perches authored and Greg Ungerer committed Jun 16, 2015
1 parent 0f57d86 commit 73cb9dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions arch/m68k/68000/m68EZ328.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions arch/m68k/68000/m68VZ328.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions arch/m68k/68360/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 73cb9dc

Please sign in to comment.