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/meth.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/meth.c')
-rw-r--r-- | drivers/net/meth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/meth.c b/drivers/net/meth.c index fe5b6c372072..e25dbab67363 100644 --- a/drivers/net/meth.c +++ b/drivers/net/meth.c | |||
@@ -95,11 +95,11 @@ char o2meth_eaddr[8]={0,0,0,0,0,0,0,0}; | |||
95 | static inline void load_eaddr(struct net_device *dev) | 95 | static inline void load_eaddr(struct net_device *dev) |
96 | { | 96 | { |
97 | int i; | 97 | int i; |
98 | DPRINTK("Loading MAC Address: %02x:%02x:%02x:%02x:%02x:%02x\n", | 98 | DECLARE_MAC_BUF(mac); |
99 | (int)o2meth_eaddr[0]&0xFF,(int)o2meth_eaddr[1]&0xFF,(int)o2meth_eaddr[2]&0xFF, | 99 | |
100 | (int)o2meth_eaddr[3]&0xFF,(int)o2meth_eaddr[4]&0xFF,(int)o2meth_eaddr[5]&0xFF); | ||
101 | for (i = 0; i < 6; i++) | 100 | for (i = 0; i < 6; i++) |
102 | dev->dev_addr[i] = o2meth_eaddr[i]; | 101 | dev->dev_addr[i] = o2meth_eaddr[i]; |
102 | DPRINTK("Loading MAC Address: %s\n", print_mac(mac, dev->dev_addr)); | ||
103 | mace->eth.mac_addr = (*(unsigned long*)o2meth_eaddr) >> 16; | 103 | mace->eth.mac_addr = (*(unsigned long*)o2meth_eaddr) >> 16; |
104 | } | 104 | } |
105 | 105 | ||