aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/b44.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/b44.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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/b44.c')
-rw-r--r--drivers/net/b44.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c
index 6d193705a3bc..40842a6aa994 100644
--- a/drivers/net/b44.c
+++ b/drivers/net/b44.c
@@ -2100,7 +2100,8 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2100 unsigned long b44reg_base, b44reg_len; 2100 unsigned long b44reg_base, b44reg_len;
2101 struct net_device *dev; 2101 struct net_device *dev;
2102 struct b44 *bp; 2102 struct b44 *bp;
2103 int err, i; 2103 int err;
2104 DECLARE_MAC_BUF(mac);
2104 2105
2105 if (b44_version_printed++ == 0) 2106 if (b44_version_printed++ == 0)
2106 printk(KERN_INFO "%s", version); 2107 printk(KERN_INFO "%s", version);
@@ -2229,10 +2230,8 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
2229 */ 2230 */
2230 b44_chip_reset(bp); 2231 b44_chip_reset(bp);
2231 2232
2232 printk(KERN_INFO "%s: Broadcom 4400 10/100BaseT Ethernet ", dev->name); 2233 printk(KERN_INFO "%s: Broadcom 4400 10/100BaseT Ethernet %s\n",
2233 for (i = 0; i < 6; i++) 2234 dev->name, print_mac(mac, dev->dev_addr));
2234 printk("%2.2x%c", dev->dev_addr[i],
2235 i == 5 ? '\n' : ':');
2236 2235
2237 return 0; 2236 return 0;
2238 2237