diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-27 18:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-27 20:06:18 -0400 |
commit | e174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch) | |
tree | e8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/net/tc35815.c | |
parent | 0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff) |
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were
a few things that had conflicts which I have just dropped for
now, no harm done.
I've built an allyesconfig with this and looked at the files
that weren't built very carefully, but it's a huge patch.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tc35815.c')
-rw-r--r-- | drivers/net/tc35815.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index df20cafff7dd..c666448fc7e3 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c | |||
@@ -865,7 +865,6 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev, | |||
865 | struct net_device *dev; | 865 | struct net_device *dev; |
866 | struct tc35815_local *lp; | 866 | struct tc35815_local *lp; |
867 | int rc; | 867 | int rc; |
868 | DECLARE_MAC_BUF(mac); | ||
869 | 868 | ||
870 | static int printed_version; | 869 | static int printed_version; |
871 | if (!printed_version++) { | 870 | if (!printed_version++) { |
@@ -942,11 +941,11 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev, | |||
942 | goto err_out; | 941 | goto err_out; |
943 | 942 | ||
944 | memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); | 943 | memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); |
945 | printk(KERN_INFO "%s: %s at 0x%lx, %s, IRQ %d\n", | 944 | printk(KERN_INFO "%s: %s at 0x%lx, %pM, IRQ %d\n", |
946 | dev->name, | 945 | dev->name, |
947 | chip_info[ent->driver_data].name, | 946 | chip_info[ent->driver_data].name, |
948 | dev->base_addr, | 947 | dev->base_addr, |
949 | print_mac(mac, dev->dev_addr), | 948 | dev->dev_addr, |
950 | dev->irq); | 949 | dev->irq); |
951 | 950 | ||
952 | rc = tc_mii_init(dev); | 951 | rc = tc_mii_init(dev); |
@@ -1288,12 +1287,9 @@ panic_queues(struct net_device *dev) | |||
1288 | 1287 | ||
1289 | static void print_eth(const u8 *add) | 1288 | static void print_eth(const u8 *add) |
1290 | { | 1289 | { |
1291 | DECLARE_MAC_BUF(mac); | ||
1292 | |||
1293 | printk(KERN_DEBUG "print_eth(%p)\n", add); | 1290 | printk(KERN_DEBUG "print_eth(%p)\n", add); |
1294 | printk(KERN_DEBUG " %s =>", print_mac(mac, add + 6)); | 1291 | printk(KERN_DEBUG " %pM => %pM : %02x%02x\n", |
1295 | printk(KERN_CONT " %s : %02x%02x\n", | 1292 | add + 6, add, add[12], add[13]); |
1296 | print_mac(mac, add), add[12], add[13]); | ||
1297 | } | 1293 | } |
1298 | 1294 | ||
1299 | static int tc35815_tx_full(struct net_device *dev) | 1295 | static int tc35815_tx_full(struct net_device *dev) |
@@ -2153,13 +2149,12 @@ static void tc35815_set_cam_entry(struct net_device *dev, int index, unsigned ch | |||
2153 | int cam_index = index * 6; | 2149 | int cam_index = index * 6; |
2154 | u32 cam_data; | 2150 | u32 cam_data; |
2155 | u32 saved_addr; | 2151 | u32 saved_addr; |
2156 | DECLARE_MAC_BUF(mac); | ||
2157 | 2152 | ||
2158 | saved_addr = tc_readl(&tr->CAM_Adr); | 2153 | saved_addr = tc_readl(&tr->CAM_Adr); |
2159 | 2154 | ||
2160 | if (netif_msg_hw(lp)) | 2155 | if (netif_msg_hw(lp)) |
2161 | printk(KERN_DEBUG "%s: CAM %d: %s\n", | 2156 | printk(KERN_DEBUG "%s: CAM %d: %pM\n", |
2162 | dev->name, index, print_mac(mac, addr)); | 2157 | dev->name, index, addr); |
2163 | if (index & 1) { | 2158 | if (index & 1) { |
2164 | /* read modify write */ | 2159 | /* read modify write */ |
2165 | tc_writel(cam_index - 2, &tr->CAM_Adr); | 2160 | tc_writel(cam_index - 2, &tr->CAM_Adr); |