[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
@@ -775,7 +775,8 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
{
|
||||
const struct ether3_data *data = id->data;
|
||||
struct net_device *dev;
|
||||
int i, bus_type, ret;
|
||||
int bus_type, ret;
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
ether3_banner();
|
||||
|
||||
@@ -858,9 +859,8 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
if (ret)
|
||||
goto free;
|
||||
|
||||
printk("%s: %s in slot %d, ", dev->name, data->name, ec->slot_no);
|
||||
for (i = 0; i < 6; i++)
|
||||
printk("%2.2x%c", dev->dev_addr[i], i == 5 ? '\n' : ':');
|
||||
printk("%s: %s in slot %d, %s\n",
|
||||
dev->name, data->name, ec->slot_no, print_mac(mac, dev->dev_addr));
|
||||
|
||||
ecard_set_drvdata(ec, dev);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user