diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/wireless/atmel.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff) |
[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>
Diffstat (limited to 'drivers/net/wireless/atmel.c')
-rw-r--r-- | drivers/net/wireless/atmel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c index 47dbdf95ea6f..059ce3f07dba 100644 --- a/drivers/net/wireless/atmel.c +++ b/drivers/net/wireless/atmel.c | |||
@@ -1484,6 +1484,7 @@ struct net_device *init_atmel_card(unsigned short irq, unsigned long port, | |||
1484 | struct net_device *dev; | 1484 | struct net_device *dev; |
1485 | struct atmel_private *priv; | 1485 | struct atmel_private *priv; |
1486 | int rc; | 1486 | int rc; |
1487 | DECLARE_MAC_BUF(mac); | ||
1487 | 1488 | ||
1488 | /* Create the network device object. */ | 1489 | /* Create the network device object. */ |
1489 | dev = alloc_etherdev(sizeof(*priv)); | 1490 | dev = alloc_etherdev(sizeof(*priv)); |
@@ -1598,10 +1599,8 @@ struct net_device *init_atmel_card(unsigned short irq, unsigned long port, | |||
1598 | if (!ent) | 1599 | if (!ent) |
1599 | printk(KERN_WARNING "atmel: unable to create /proc entry.\n"); | 1600 | printk(KERN_WARNING "atmel: unable to create /proc entry.\n"); |
1600 | 1601 | ||
1601 | printk(KERN_INFO "%s: Atmel at76c50x. Version %d.%d. MAC %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", | 1602 | printk(KERN_INFO "%s: Atmel at76c50x. Version %d.%d. MAC %s\n", |
1602 | dev->name, DRIVER_MAJOR, DRIVER_MINOR, | 1603 | dev->name, DRIVER_MAJOR, DRIVER_MINOR, print_mac(mac, dev->dev_addr)); |
1603 | dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], | ||
1604 | dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5] ); | ||
1605 | 1604 | ||
1606 | return dev; | 1605 | return dev; |
1607 | 1606 | ||