aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ps3_gelic_net.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-10-03 20:59:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:42 -0400
commit0795af5729b18218767fab27c44b1384f72dc9ad (patch)
tree67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /drivers/net/ps3_gelic_net.c
parent95ea36275f3c9a1d3d04c217b4b576c657c4e70e (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/ps3_gelic_net.c')
-rw-r--r--drivers/net/ps3_gelic_net.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ps3_gelic_net.c b/drivers/net/ps3_gelic_net.c
index f375bbbd6604..0a42bf517465 100644
--- a/drivers/net/ps3_gelic_net.c
+++ b/drivers/net/ps3_gelic_net.c
@@ -1348,6 +1348,7 @@ static int gelic_net_setup_netdev(struct gelic_net_card *card)
1348 unsigned int i; 1348 unsigned int i;
1349 int status; 1349 int status;
1350 u64 v1, v2; 1350 u64 v1, v2;
1351 DECLARE_MAC_BUF(mac);
1351 1352
1352 SET_NETDEV_DEV(netdev, &card->dev->core); 1353 SET_NETDEV_DEV(netdev, &card->dev->core);
1353 spin_lock_init(&card->tx_dma_lock); 1354 spin_lock_init(&card->tx_dma_lock);
@@ -1373,10 +1374,8 @@ static int gelic_net_setup_netdev(struct gelic_net_card *card)
1373 v1 <<= 16; 1374 v1 <<= 16;
1374 memcpy(addr.sa_data, &v1, ETH_ALEN); 1375 memcpy(addr.sa_data, &v1, ETH_ALEN);
1375 memcpy(netdev->dev_addr, addr.sa_data, ETH_ALEN); 1376 memcpy(netdev->dev_addr, addr.sa_data, ETH_ALEN);
1376 dev_info(ctodev(card), "MAC addr %02x:%02x:%02x:%02x:%02x:%02x\n", 1377 dev_info(ctodev(card), "MAC addr %s\n",
1377 netdev->dev_addr[0], netdev->dev_addr[1], 1378 print_mac(mac, netdev->dev_addr));
1378 netdev->dev_addr[2], netdev->dev_addr[3],
1379 netdev->dev_addr[4], netdev->dev_addr[5]);
1380 1379
1381 card->vlan_index = -1; /* no vlan */ 1380 card->vlan_index = -1; /* no vlan */
1382 for (i = 0; i < GELIC_NET_VLAN_MAX; i++) { 1381 for (i = 0; i < GELIC_NET_VLAN_MAX; i++) {