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/pci-skeleton.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/pci-skeleton.c')
-rw-r--r-- | drivers/net/pci-skeleton.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/pci-skeleton.c b/drivers/net/pci-skeleton.c index 7dace63fb6e6..ed402e00e730 100644 --- a/drivers/net/pci-skeleton.c +++ b/drivers/net/pci-skeleton.c | |||
@@ -737,6 +737,7 @@ static int __devinit netdrv_init_one (struct pci_dev *pdev, | |||
737 | int i, addr_len, option; | 737 | int i, addr_len, option; |
738 | void *ioaddr = NULL; | 738 | void *ioaddr = NULL; |
739 | static int board_idx = -1; | 739 | static int board_idx = -1; |
740 | DECLARE_MAC_BUF(mac); | ||
740 | 741 | ||
741 | /* when built into the kernel, we only print version if device is found */ | 742 | /* when built into the kernel, we only print version if device is found */ |
742 | #ifndef MODULE | 743 | #ifndef MODULE |
@@ -796,15 +797,11 @@ static int __devinit netdrv_init_one (struct pci_dev *pdev, | |||
796 | 797 | ||
797 | tp->phys[0] = 32; | 798 | tp->phys[0] = 32; |
798 | 799 | ||
799 | printk (KERN_INFO "%s: %s at 0x%lx, " | 800 | printk (KERN_INFO "%s: %s at 0x%lx, %sIRQ %d\n", |
800 | "%2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x, " | ||
801 | "IRQ %d\n", | ||
802 | dev->name, | 801 | dev->name, |
803 | board_info[ent->driver_data].name, | 802 | board_info[ent->driver_data].name, |
804 | dev->base_addr, | 803 | dev->base_addr, |
805 | dev->dev_addr[0], dev->dev_addr[1], | 804 | print_mac(mac, dev->dev_addr), |
806 | dev->dev_addr[2], dev->dev_addr[3], | ||
807 | dev->dev_addr[4], dev->dev_addr[5], | ||
808 | dev->irq); | 805 | dev->irq); |
809 | 806 | ||
810 | printk (KERN_DEBUG "%s: Identified 8139 chip type '%s'\n", | 807 | printk (KERN_DEBUG "%s: Identified 8139 chip type '%s'\n", |