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/hydra.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/hydra.c')
-rw-r--r-- | drivers/net/hydra.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/hydra.c b/drivers/net/hydra.c index 31300a9dd965..b96cf2dcb109 100644 --- a/drivers/net/hydra.c +++ b/drivers/net/hydra.c | |||
@@ -103,6 +103,7 @@ static int __devinit hydra_init(struct zorro_dev *z) | |||
103 | int start_page, stop_page; | 103 | int start_page, stop_page; |
104 | int j; | 104 | int j; |
105 | int err; | 105 | int err; |
106 | DECLARE_MAC_BUF(mac); | ||
106 | 107 | ||
107 | static u32 hydra_offsets[16] = { | 108 | static u32 hydra_offsets[16] = { |
108 | 0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x0e, | 109 | 0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x0e, |
@@ -162,10 +163,8 @@ static int __devinit hydra_init(struct zorro_dev *z) | |||
162 | zorro_set_drvdata(z, dev); | 163 | zorro_set_drvdata(z, dev); |
163 | 164 | ||
164 | printk(KERN_INFO "%s: Hydra at 0x%08lx, address " | 165 | printk(KERN_INFO "%s: Hydra at 0x%08lx, address " |
165 | "%02x:%02x:%02x:%02x:%02x:%02x (hydra.c " HYDRA_VERSION ")\n", | 166 | "%s (hydra.c " HYDRA_VERSION ")\n", |
166 | dev->name, z->resource.start, dev->dev_addr[0], dev->dev_addr[1], | 167 | dev->name, z->resource.start, print_mac(mac, dev->dev_addr)); |
167 | dev->dev_addr[2], dev->dev_addr[3], dev->dev_addr[4], | ||
168 | dev->dev_addr[5]); | ||
169 | 168 | ||
170 | return 0; | 169 | return 0; |
171 | } | 170 | } |