aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/pegasus.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/usb/pegasus.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/usb/pegasus.c')
-rw-r--r--drivers/net/usb/pegasus.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c
index 432a2f054468..d1ed68a11e70 100644
--- a/drivers/net/usb/pegasus.c
+++ b/drivers/net/usb/pegasus.c
@@ -1297,6 +1297,7 @@ static int pegasus_probe(struct usb_interface *intf,
1297 pegasus_t *pegasus; 1297 pegasus_t *pegasus;
1298 int dev_index = id - pegasus_ids; 1298 int dev_index = id - pegasus_ids;
1299 int res = -ENOMEM; 1299 int res = -ENOMEM;
1300 DECLARE_MAC_BUF(mac);
1300 1301
1301 usb_get_dev(dev); 1302 usb_get_dev(dev);
1302 net = alloc_etherdev(sizeof(struct pegasus)); 1303 net = alloc_etherdev(sizeof(struct pegasus));
@@ -1367,12 +1368,10 @@ static int pegasus_probe(struct usb_interface *intf,
1367 queue_delayed_work(pegasus_workqueue, &pegasus->carrier_check, 1368 queue_delayed_work(pegasus_workqueue, &pegasus->carrier_check,
1368 CARRIER_CHECK_DELAY); 1369 CARRIER_CHECK_DELAY);
1369 1370
1370 dev_info(&intf->dev, "%s, %s, %02x:%02x:%02x:%02x:%02x:%02x\n", 1371 dev_info(&intf->dev, "%s, %s, %s\n",
1371 net->name, 1372 net->name,
1372 usb_dev_id[dev_index].name, 1373 usb_dev_id[dev_index].name,
1373 net->dev_addr [0], net->dev_addr [1], 1374 print_mac(mac, net->dev_addr));
1374 net->dev_addr [2], net->dev_addr [3],
1375 net->dev_addr [4], net->dev_addr [5]);
1376 return 0; 1375 return 0;
1377 1376
1378out3: 1377out3: