Commit df523b5c authored by Eugene Konev's avatar Eugene Konev Committed by Jeff Garzik

cpmac: use print_mac() instead of MAC_FMT

Switch to using DECLARE_MAC_BUF/print_mac() added by commit
0795af57 [NET]: Introduce and use print_mac()
and DECLARE_MAC_BUF().
Signed-off-by: default avatarEugene Konev <ejka@imfi.kspu.ru>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent bbbab5ca
...@@ -53,12 +53,6 @@ MODULE_PARM_DESC(debug_level, "Number of NETIF_MSG bits to enable"); ...@@ -53,12 +53,6 @@ MODULE_PARM_DESC(debug_level, "Number of NETIF_MSG bits to enable");
MODULE_PARM_DESC(dumb_switch, "Assume switch is not connected to MDIO bus"); MODULE_PARM_DESC(dumb_switch, "Assume switch is not connected to MDIO bus");
#define CPMAC_VERSION "0.5.0" #define CPMAC_VERSION "0.5.0"
/* stolen from net/ieee80211.h */
#ifndef MAC_FMT
#define MAC_FMT "%02x:%02x:%02x:%02x:%02x:%02x"
#define MAC_ARG(x) ((u8*)(x))[0], ((u8*)(x))[1], ((u8*)(x))[2], \
((u8*)(x))[3], ((u8*)(x))[4], ((u8*)(x))[5]
#endif
/* frame size + 802.1q tag */ /* frame size + 802.1q tag */
#define CPMAC_SKB_SIZE (ETH_FRAME_LEN + 4) #define CPMAC_SKB_SIZE (ETH_FRAME_LEN + 4)
#define CPMAC_QUEUES 8 #define CPMAC_QUEUES 8
...@@ -1006,6 +1000,7 @@ static int __devinit cpmac_probe(struct platform_device *pdev) ...@@ -1006,6 +1000,7 @@ static int __devinit cpmac_probe(struct platform_device *pdev)
struct cpmac_priv *priv; struct cpmac_priv *priv;
struct net_device *dev; struct net_device *dev;
struct plat_cpmac_data *pdata; struct plat_cpmac_data *pdata;
DECLARE_MAC_BUF(mac);
pdata = pdev->dev.platform_data; pdata = pdev->dev.platform_data;
...@@ -1077,9 +1072,9 @@ static int __devinit cpmac_probe(struct platform_device *pdev) ...@@ -1077,9 +1072,9 @@ static int __devinit cpmac_probe(struct platform_device *pdev)
if (netif_msg_probe(priv)) { if (netif_msg_probe(priv)) {
printk(KERN_INFO printk(KERN_INFO
"cpmac: device %s (regs: %p, irq: %d, phy: %s, mac: " "cpmac: device %s (regs: %p, irq: %d, phy: %s, "
MAC_FMT ")\n", dev->name, (void *)mem->start, dev->irq, "mac: %s)\n", dev->name, (void *)mem->start, dev->irq,
priv->phy_name, MAC_ARG(dev->dev_addr)); priv->phy_name, print_mac(mac, dev->dev_addr));
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment