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/netxen/netxen_nic_niu.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/netxen/netxen_nic_niu.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_niu.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/netxen/netxen_nic_niu.c b/drivers/net/netxen/netxen_nic_niu.c index 05e0577a0e1..5b9e1b300fa 100644 --- a/drivers/net/netxen/netxen_nic_niu.c +++ b/drivers/net/netxen/netxen_nic_niu.c | |||
@@ -603,6 +603,7 @@ int netxen_niu_macaddr_set(struct netxen_adapter *adapter, | |||
603 | int phy = physical_port[adapter->portnum]; | 603 | int phy = physical_port[adapter->portnum]; |
604 | unsigned char mac_addr[6]; | 604 | unsigned char mac_addr[6]; |
605 | int i; | 605 | int i; |
606 | DECLARE_MAC_BUF(mac); | ||
606 | 607 | ||
607 | for (i = 0; i < 10; i++) { | 608 | for (i = 0; i < 10; i++) { |
608 | temp[0] = temp[1] = 0; | 609 | temp[0] = temp[1] = 0; |
@@ -627,15 +628,10 @@ int netxen_niu_macaddr_set(struct netxen_adapter *adapter, | |||
627 | if (i == 10) { | 628 | if (i == 10) { |
628 | printk(KERN_ERR "%s: cannot set Mac addr for %s\n", | 629 | printk(KERN_ERR "%s: cannot set Mac addr for %s\n", |
629 | netxen_nic_driver_name, adapter->netdev->name); | 630 | netxen_nic_driver_name, adapter->netdev->name); |
630 | printk(KERN_ERR "MAC address set: " | 631 | printk(KERN_ERR "MAC address set: %s.\n", |
631 | "%02x:%02x:%02x:%02x:%02x:%02x.\n", | 632 | print_mac(mac, addr)); |
632 | addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]); | 633 | printk(KERN_ERR "MAC address get: %s.\n", |
633 | 634 | print_mac(mac, mac_addr)); | |
634 | printk(KERN_ERR "MAC address get: " | ||
635 | "%02x:%02x:%02x:%02x:%02x:%02x.\n", | ||
636 | mac_addr[0], | ||
637 | mac_addr[1], | ||
638 | mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]); | ||
639 | } | 635 | } |
640 | return 0; | 636 | return 0; |
641 | } | 637 | } |