]> err.no Git - linux-2.6/commitdiff
[PATCH] ixp2000: report MAC addresses for each port on init
authorLennert Buytenhek <buytenh@wantstofly.org>
Wed, 23 Nov 2005 11:49:43 +0000 (12:49 +0100)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 1 Dec 2005 07:25:26 +0000 (02:25 -0500)
After initialising, report the MAC address that we're using for
each port.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/ixp2000/ixpdev.c

index e9d978a1d6b4f1a9db17064fd29dcf9573a225a7..2ef8f8fa6c4a6b2013dfc2681e3ac51d944aedde 100644 (file)
@@ -362,6 +362,14 @@ int ixpdev_init(int __nds_count, struct net_device **__nds,
                }
        }
 
+       for (i = 0; i < nds_count; i++) {
+               printk(KERN_INFO "%s: IXP2000 MSF ethernet (port %d), "
+                       "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x.\n", nds[i]->name, i,
+                       nds[i]->dev_addr[0], nds[i]->dev_addr[1],
+                       nds[i]->dev_addr[2], nds[i]->dev_addr[3],
+                       nds[i]->dev_addr[4], nds[i]->dev_addr[5]);
+       }
+
        return 0;
 
 err_free_tx: