aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macb.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/macb.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/macb.c')
-rw-r--r--drivers/net/macb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index c6707580c305..047ea7be4850 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -1071,6 +1071,7 @@ static int __devinit macb_probe(struct platform_device *pdev)
1071 unsigned long pclk_hz; 1071 unsigned long pclk_hz;
1072 u32 config; 1072 u32 config;
1073 int err = -ENXIO; 1073 int err = -ENXIO;
1074 DECLARE_MAC_BUF(mac);
1074 1075
1075 regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1076 regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1076 if (!regs) { 1077 if (!regs) {
@@ -1190,10 +1191,9 @@ static int __devinit macb_probe(struct platform_device *pdev)
1190 platform_set_drvdata(pdev, dev); 1191 platform_set_drvdata(pdev, dev);
1191 1192
1192 printk(KERN_INFO "%s: Atmel MACB at 0x%08lx irq %d " 1193 printk(KERN_INFO "%s: Atmel MACB at 0x%08lx irq %d "
1193 "(%02x:%02x:%02x:%02x:%02x:%02x)\n", 1194 "(%s)\n",
1194 dev->name, dev->base_addr, dev->irq, 1195 dev->name, dev->base_addr, dev->irq,
1195 dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2], 1196 print_mac(mac, dev->dev_addr));
1196 dev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
1197 1197
1198 phydev = bp->phy_dev; 1198 phydev = bp->phy_dev;
1199 printk(KERN_INFO "%s: attached PHY driver [%s] " 1199 printk(KERN_INFO "%s: attached PHY driver [%s] "