You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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
@@ -67,6 +67,7 @@ struct net_device * __init mvme147lance_probe(int unit)
|
||||
u_long *addr;
|
||||
u_long address;
|
||||
int err;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
if (!MACH_IS_MVME147 || called)
|
||||
return ERR_PTR(-ENODEV);
|
||||
@@ -101,12 +102,10 @@ struct net_device * __init mvme147lance_probe(int unit)
|
||||
address=address>>8;
|
||||
dev->dev_addr[3]=address&0xff;
|
||||
|
||||
printk("%s: MVME147 at 0x%08lx, irq %d, Hardware Address %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||
dev->name, dev->base_addr, MVME147_LANCE_IRQ,
|
||||
dev->dev_addr[0],
|
||||
dev->dev_addr[1], dev->dev_addr[2],
|
||||
dev->dev_addr[3], dev->dev_addr[4],
|
||||
dev->dev_addr[5]);
|
||||
printk("%s: MVME147 at 0x%08lx, irq %d, "
|
||||
"Hardware Address %s\n",
|
||||
dev->name, dev->base_addr, MVME147_LANCE_IRQ,
|
||||
print_mac(mac, dev->dev_addr));
|
||||
|
||||
lp = (struct m147lance_private *)dev->priv;
|
||||
lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 16K */
|
||||
|
||||
Reference in New Issue
Block a user