diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/tokenring/tmspci.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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/tokenring/tmspci.c')
-rw-r--r-- | drivers/net/tokenring/tmspci.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/tokenring/tmspci.c b/drivers/net/tokenring/tmspci.c index ecdd8511a67b..1c18f782f522 100644 --- a/drivers/net/tokenring/tmspci.c +++ b/drivers/net/tokenring/tmspci.c | |||
@@ -96,10 +96,11 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic | |||
96 | static int versionprinted; | 96 | static int versionprinted; |
97 | struct net_device *dev; | 97 | struct net_device *dev; |
98 | struct net_local *tp; | 98 | struct net_local *tp; |
99 | int i, ret; | 99 | int ret; |
100 | unsigned int pci_irq_line; | 100 | unsigned int pci_irq_line; |
101 | unsigned long pci_ioaddr; | 101 | unsigned long pci_ioaddr; |
102 | struct card_info *cardinfo = &card_info_table[ent->driver_data]; | 102 | struct card_info *cardinfo = &card_info_table[ent->driver_data]; |
103 | DECLARE_MAC_BUF(mac); | ||
103 | 104 | ||
104 | if (versionprinted++ == 0) | 105 | if (versionprinted++ == 0) |
105 | printk("%s", version); | 106 | printk("%s", version); |
@@ -136,11 +137,8 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic | |||
136 | 137 | ||
137 | tms_pci_read_eeprom(dev); | 138 | tms_pci_read_eeprom(dev); |
138 | 139 | ||
139 | printk("%s: Ring Station Address: ", dev->name); | 140 | printk("%s: Ring Station Address: %s\n", |
140 | printk("%2.2x", dev->dev_addr[0]); | 141 | dev->name, print_mac(mac, dev->dev_addr)); |
141 | for (i = 1; i < 6; i++) | ||
142 | printk(":%2.2x", dev->dev_addr[i]); | ||
143 | printk("\n"); | ||
144 | 142 | ||
145 | ret = tmsdev_init(dev, &pdev->dev); | 143 | ret = tmsdev_init(dev, &pdev->dev); |
146 | if (ret) { | 144 | if (ret) { |