qlcnic: fix link status message
Display interface name with netdev_info() for link status message. Signed-off-by: Sony Chacko <sony.chacko@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b602121229
commit
69324275de
1 changed files with 2 additions and 2 deletions
|
@ -1944,14 +1944,14 @@ void qlcnic_advert_link_change(struct qlcnic_adapter *adapter, int linkup)
|
|||
struct net_device *netdev = adapter->netdev;
|
||||
|
||||
if (adapter->ahw.linkup && !linkup) {
|
||||
dev_info(&netdev->dev, "NIC Link is down\n");
|
||||
netdev_info(netdev, "NIC Link is down\n");
|
||||
adapter->ahw.linkup = 0;
|
||||
if (netif_running(netdev)) {
|
||||
netif_carrier_off(netdev);
|
||||
netif_stop_queue(netdev);
|
||||
}
|
||||
} else if (!adapter->ahw.linkup && linkup) {
|
||||
dev_info(&netdev->dev, "NIC Link is up\n");
|
||||
netdev_info(netdev, "NIC Link is up\n");
|
||||
adapter->ahw.linkup = 1;
|
||||
if (netif_running(netdev)) {
|
||||
netif_carrier_on(netdev);
|
||||
|
|
Loading…
Reference in a new issue