aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/starfire.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/starfire.c')
-rw-r--r--drivers/net/starfire.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c
index 5785429ca0e2..ea253754763a 100644
--- a/drivers/net/starfire.c
+++ b/drivers/net/starfire.c
@@ -694,6 +694,7 @@ static int __devinit starfire_init_one(struct pci_dev *pdev,
694 void __iomem *base; 694 void __iomem *base;
695 int drv_flags, io_size; 695 int drv_flags, io_size;
696 int boguscnt; 696 int boguscnt;
697 DECLARE_MAC_BUF(mac);
697 698
698/* when built into the kernel, we only print version if device is found */ 699/* when built into the kernel, we only print version if device is found */
699#ifndef MODULE 700#ifndef MODULE
@@ -863,11 +864,9 @@ static int __devinit starfire_init_one(struct pci_dev *pdev,
863 if (register_netdev(dev)) 864 if (register_netdev(dev))
864 goto err_out_cleardev; 865 goto err_out_cleardev;
865 866
866 printk(KERN_INFO "%s: %s at %p, ", 867 printk(KERN_INFO "%s: %s at %p, %s, IRQ %d.\n",
867 dev->name, netdrv_tbl[chip_idx].name, base); 868 dev->name, netdrv_tbl[chip_idx].name, base,
868 for (i = 0; i < 5; i++) 869 print_mac(mac, dev->dev_addr), irq);
869 printk("%2.2x:", dev->dev_addr[i]);
870 printk("%2.2x, IRQ %d.\n", dev->dev_addr[i], irq);
871 870
872 if (drv_flags & CanHaveMII) { 871 if (drv_flags & CanHaveMII) {
873 int phy, phy_idx = 0; 872 int phy, phy_idx = 0;
@@ -1472,13 +1471,16 @@ static int __netdev_rx(struct net_device *dev, int *quota)
1472 } 1471 }
1473#ifndef final_version /* Remove after testing. */ 1472#ifndef final_version /* Remove after testing. */
1474 /* You will want this info for the initial debug. */ 1473 /* You will want this info for the initial debug. */
1475 if (debug > 5) 1474 if (debug > 5) {
1476 printk(KERN_DEBUG " Rx data %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:" 1475 DECLARE_MAC_BUF(mac);
1477 "%2.2x %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x %2.2x%2.2x.\n", 1476 DECLARE_MAC_BUF(mac2);
1478 skb->data[0], skb->data[1], skb->data[2], skb->data[3], 1477
1479 skb->data[4], skb->data[5], skb->data[6], skb->data[7], 1478 printk(KERN_DEBUG " Rx data %s %s"
1480 skb->data[8], skb->data[9], skb->data[10], 1479 " %2.2x%2.2x.\n",
1481 skb->data[11], skb->data[12], skb->data[13]); 1480 print_mac(mac, &skb->data[0]),
1481 print_mac(mac2, &skb->data[6]),
1482 skb->data[12], skb->data[13]);
1483 }
1482#endif 1484#endif
1483 1485
1484 skb->protocol = eth_type_trans(skb, dev); 1486 skb->protocol = eth_type_trans(skb, dev);