aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cpmac.c
diff options
context:
space:
mode:
authorEugene Konev <ejka@imfi.kspu.ru>2007-10-23 22:42:01 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-25 03:31:14 -0400
commitdf523b5cd9950485350fb1b7d97d5b8882d94a4e (patch)
treee52ca91ee1495f727f4e4317e570f6ec185b1eca /drivers/net/cpmac.c
parentbbbab5ca835fb7676434815a47add8f2c696bec7 (diff)
cpmac: use print_mac() instead of MAC_FMT
Switch to using DECLARE_MAC_BUF/print_mac() added by commit 0795af5729b18218767fab27c44b1384f72dc9ad [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF(). Signed-off-by: Eugene Konev <ejka@imfi.kspu.ru> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cpmac.c')
-rw-r--r--drivers/net/cpmac.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/net/cpmac.c b/drivers/net/cpmac.c
index 57541d2d9e1e..0598d4d438f5 100644
--- a/drivers/net/cpmac.c
+++ b/drivers/net/cpmac.c
@@ -53,12 +53,6 @@ MODULE_PARM_DESC(debug_level, "Number of NETIF_MSG bits to enable");
53MODULE_PARM_DESC(dumb_switch, "Assume switch is not connected to MDIO bus"); 53MODULE_PARM_DESC(dumb_switch, "Assume switch is not connected to MDIO bus");
54 54
55#define CPMAC_VERSION "0.5.0" 55#define CPMAC_VERSION "0.5.0"
56/* stolen from net/ieee80211.h */
57#ifndef MAC_FMT
58#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
59#define MAC_ARG(x) ((u8*)(x))[0], ((u8*)(x))[1], ((u8*)(x))[2], \
60 ((u8*)(x))[3], ((u8*)(x))[4], ((u8*)(x))[5]
61#endif
62/* frame size + 802.1q tag */ 56/* frame size + 802.1q tag */
63#define CPMAC_SKB_SIZE (ETH_FRAME_LEN + 4) 57#define CPMAC_SKB_SIZE (ETH_FRAME_LEN + 4)
64#define CPMAC_QUEUES 8 58#define CPMAC_QUEUES 8
@@ -1006,6 +1000,7 @@ static int __devinit cpmac_probe(struct platform_device *pdev)
1006 struct cpmac_priv *priv; 1000 struct cpmac_priv *priv;
1007 struct net_device *dev; 1001 struct net_device *dev;
1008 struct plat_cpmac_data *pdata; 1002 struct plat_cpmac_data *pdata;
1003 DECLARE_MAC_BUF(mac);
1009 1004
1010 pdata = pdev->dev.platform_data; 1005 pdata = pdev->dev.platform_data;
1011 1006
@@ -1077,9 +1072,9 @@ static int __devinit cpmac_probe(struct platform_device *pdev)
1077 1072
1078 if (netif_msg_probe(priv)) { 1073 if (netif_msg_probe(priv)) {
1079 printk(KERN_INFO 1074 printk(KERN_INFO
1080 "cpmac: device %s (regs: %p, irq: %d, phy: %s, mac: " 1075 "cpmac: device %s (regs: %p, irq: %d, phy: %s, "
1081 MAC_FMT ")\n", dev->name, (void *)mem->start, dev->irq, 1076 "mac: %s)\n", dev->name, (void *)mem->start, dev->irq,
1082 priv->phy_name, MAC_ARG(dev->dev_addr)); 1077 priv->phy_name, print_mac(mac, dev->dev_addr));
1083 } 1078 }
1084 return 0; 1079 return 0;
1085 1080