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/xircom_cb.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/xircom_cb.c')
-rw-r--r-- | drivers/net/tulip/xircom_cb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/tulip/xircom_cb.c b/drivers/net/tulip/xircom_cb.c index de8c92083e92..70befe33e454 100644 --- a/drivers/net/tulip/xircom_cb.c +++ b/drivers/net/tulip/xircom_cb.c | |||
@@ -1074,6 +1074,7 @@ static void read_mac_address(struct xircom_private *card) | |||
1074 | unsigned char j, tuple, link, data_id, data_count; | 1074 | unsigned char j, tuple, link, data_id, data_count; |
1075 | unsigned long flags; | 1075 | unsigned long flags; |
1076 | int i; | 1076 | int i; |
1077 | DECLARE_MAC_BUF(mac); | ||
1077 | 1078 | ||
1078 | enter("read_mac_address"); | 1079 | enter("read_mac_address"); |
1079 | 1080 | ||
@@ -1103,11 +1104,7 @@ static void read_mac_address(struct xircom_private *card) | |||
1103 | } | 1104 | } |
1104 | } | 1105 | } |
1105 | spin_unlock_irqrestore(&card->lock, flags); | 1106 | spin_unlock_irqrestore(&card->lock, flags); |
1106 | #ifdef DEBUG | 1107 | pr_debug(" %s\n", print_mac(mac, card->dev->dev_addr)); |
1107 | for (i = 0; i < 6; i++) | ||
1108 | printk("%c%2.2X", i ? ':' : ' ', card->dev->dev_addr[i]); | ||
1109 | printk("\n"); | ||
1110 | #endif | ||
1111 | leave("read_mac_address"); | 1108 | leave("read_mac_address"); |
1112 | } | 1109 | } |
1113 | 1110 | ||