diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2008-11-27 03:23:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-27 03:23:37 -0500 |
commit | f4113030e73db80bc5368a8303458008975402dd (patch) | |
tree | b3c562d24c85a84642bff12edb748e69e4bef5f1 /drivers/net | |
parent | d276016cf990f492cb33a1ff61d789730b3f0d6d (diff) |
e100: cleanup link up/down messages
The system log messages created on a link status change need to follow a
specific format to work with tools some customers use. This also makes
the messages consistant with other Intel driver link messages.
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/e100.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index 2001a63794f5..dce7ff28c3ff 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -1580,11 +1580,13 @@ static void e100_watchdog(unsigned long data) | |||
1580 | mii_ethtool_gset(&nic->mii, &cmd); | 1580 | mii_ethtool_gset(&nic->mii, &cmd); |
1581 | 1581 | ||
1582 | if(mii_link_ok(&nic->mii) && !netif_carrier_ok(nic->netdev)) { | 1582 | if(mii_link_ok(&nic->mii) && !netif_carrier_ok(nic->netdev)) { |
1583 | DPRINTK(LINK, INFO, "link up, %sMbps, %s-duplex\n", | 1583 | printk(KERN_INFO "e100: %s NIC Link is Up %s Mbps %s Duplex\n", |
1584 | cmd.speed == SPEED_100 ? "100" : "10", | 1584 | nic->netdev->name, |
1585 | cmd.duplex == DUPLEX_FULL ? "full" : "half"); | 1585 | cmd.speed == SPEED_100 ? "100" : "10", |
1586 | cmd.duplex == DUPLEX_FULL ? "Full" : "Half"); | ||
1586 | } else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) { | 1587 | } else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) { |
1587 | DPRINTK(LINK, INFO, "link down\n"); | 1588 | printk(KERN_INFO "e100: %s NIC Link is Down\n", |
1589 | nic->netdev->name); | ||
1588 | } | 1590 | } |
1589 | 1591 | ||
1590 | mii_check_link(&nic->mii); | 1592 | mii_check_link(&nic->mii); |