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>
This commit is contained in:
committed by
David S. Miller
parent
d276016cf9
commit
f4113030e7
@@ -1580,11 +1580,13 @@ static void e100_watchdog(unsigned long data)
|
|||||||
mii_ethtool_gset(&nic->mii, &cmd);
|
mii_ethtool_gset(&nic->mii, &cmd);
|
||||||
|
|
||||||
if(mii_link_ok(&nic->mii) && !netif_carrier_ok(nic->netdev)) {
|
if(mii_link_ok(&nic->mii) && !netif_carrier_ok(nic->netdev)) {
|
||||||
DPRINTK(LINK, INFO, "link up, %sMbps, %s-duplex\n",
|
printk(KERN_INFO "e100: %s NIC Link is Up %s Mbps %s Duplex\n",
|
||||||
|
nic->netdev->name,
|
||||||
cmd.speed == SPEED_100 ? "100" : "10",
|
cmd.speed == SPEED_100 ? "100" : "10",
|
||||||
cmd.duplex == DUPLEX_FULL ? "full" : "half");
|
cmd.duplex == DUPLEX_FULL ? "Full" : "Half");
|
||||||
} else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) {
|
} else if(!mii_link_ok(&nic->mii) && netif_carrier_ok(nic->netdev)) {
|
||||||
DPRINTK(LINK, INFO, "link down\n");
|
printk(KERN_INFO "e100: %s NIC Link is Down\n",
|
||||||
|
nic->netdev->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
mii_check_link(&nic->mii);
|
mii_check_link(&nic->mii);
|
||||||
|
Reference in New Issue
Block a user