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/tulip/de2104x.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/tulip/de2104x.c')
-rw-r--r-- | drivers/net/tulip/de2104x.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index ba3d0e5574a4..f12e33a17363 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c | |||
@@ -1929,6 +1929,7 @@ static int __devinit de_init_one (struct pci_dev *pdev, | |||
1929 | void __iomem *regs; | 1929 | void __iomem *regs; |
1930 | unsigned long pciaddr; | 1930 | unsigned long pciaddr; |
1931 | static int board_idx = -1; | 1931 | static int board_idx = -1; |
1932 | DECLARE_MAC_BUF(mac); | ||
1932 | 1933 | ||
1933 | board_idx++; | 1934 | board_idx++; |
1934 | 1935 | ||
@@ -2042,15 +2043,11 @@ static int __devinit de_init_one (struct pci_dev *pdev, | |||
2042 | goto err_out_iomap; | 2043 | goto err_out_iomap; |
2043 | 2044 | ||
2044 | /* print info about board and interface just registered */ | 2045 | /* print info about board and interface just registered */ |
2045 | printk (KERN_INFO "%s: %s at 0x%lx, " | 2046 | printk (KERN_INFO "%s: %s at 0x%lx, %s, IRQ %d\n", |
2046 | "%02x:%02x:%02x:%02x:%02x:%02x, " | ||
2047 | "IRQ %d\n", | ||
2048 | dev->name, | 2047 | dev->name, |
2049 | de->de21040 ? "21040" : "21041", | 2048 | de->de21040 ? "21040" : "21041", |
2050 | dev->base_addr, | 2049 | dev->base_addr, |
2051 | dev->dev_addr[0], dev->dev_addr[1], | 2050 | print_mac(mac, dev->dev_addr), |
2052 | dev->dev_addr[2], dev->dev_addr[3], | ||
2053 | dev->dev_addr[4], dev->dev_addr[5], | ||
2054 | dev->irq); | 2051 | dev->irq); |
2055 | 2052 | ||
2056 | pci_set_drvdata(pdev, dev); | 2053 | pci_set_drvdata(pdev, dev); |