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/uli526x.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/uli526x.c')
-rw-r--r-- | drivers/net/tulip/uli526x.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index 2b7257d97c3..a4fd782bcd2 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c | |||
@@ -258,6 +258,7 @@ static int __devinit uli526x_init_one (struct pci_dev *pdev, | |||
258 | struct uli526x_board_info *db; /* board information structure */ | 258 | struct uli526x_board_info *db; /* board information structure */ |
259 | struct net_device *dev; | 259 | struct net_device *dev; |
260 | int i, err; | 260 | int i, err; |
261 | DECLARE_MAC_BUF(mac); | ||
261 | 262 | ||
262 | ULI526X_DBUG(0, "uli526x_init_one()", 0); | 263 | ULI526X_DBUG(0, "uli526x_init_one()", 0); |
263 | 264 | ||
@@ -372,11 +373,9 @@ static int __devinit uli526x_init_one (struct pci_dev *pdev, | |||
372 | if (err) | 373 | if (err) |
373 | goto err_out_res; | 374 | goto err_out_res; |
374 | 375 | ||
375 | printk(KERN_INFO "%s: ULi M%04lx at pci%s,",dev->name,ent->driver_data >> 16,pci_name(pdev)); | 376 | printk(KERN_INFO "%s: ULi M%04lx at pci%s, %s, irq %d.\n", |
376 | 377 | dev->name,ent->driver_data >> 16,pci_name(pdev), | |
377 | for (i = 0; i < 6; i++) | 378 | print_mac(mac, dev->dev_addr), dev->irq); |
378 | printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]); | ||
379 | printk(", irq %d.\n", dev->irq); | ||
380 | 379 | ||
381 | pci_set_master(pdev); | 380 | pci_set_master(pdev); |
382 | 381 | ||