[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
95ea36275f
commit
0795af5729
@@ -2407,6 +2407,7 @@ static int sbmac_init(struct net_device *dev, int idx)
|
||||
uint64_t ea_reg;
|
||||
int i;
|
||||
int err;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
sc = netdev_priv(dev);
|
||||
|
||||
@@ -2487,10 +2488,8 @@ static int sbmac_init(struct net_device *dev, int idx)
|
||||
* was being displayed)
|
||||
*/
|
||||
printk(KERN_INFO
|
||||
"%s: SiByte Ethernet at 0x%08lX, address: %02X:%02X:%02X:%02X:%02X:%02X\n",
|
||||
dev->name, dev->base_addr,
|
||||
eaddr[0],eaddr[1],eaddr[2],eaddr[3],eaddr[4],eaddr[5]);
|
||||
|
||||
"%s: SiByte Ethernet at 0x%08lX, address: %s\n",
|
||||
dev->name, dev->base_addr, print_mac(mac, eaddr));
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user