ixgbevf: Fix link up messages
authorGreg Rose <gregory.v.rose@intel.com>
Fri, 4 Jan 2013 07:37:26 +0000 (07:37 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 19 Jan 2013 12:35:33 +0000 (04:35 -0800)
Use dev_info to log link up/down messages.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

index 580dfd8..3fbf0d2 100644 (file)
@@ -2240,9 +2240,10 @@ static void ixgbevf_watchdog_task(struct work_struct *work)
 
        if (link_up) {
                if (!netif_carrier_ok(netdev)) {
-                       hw_dbg(&adapter->hw, "NIC Link is Up, %u Gbps\n",
-                              (link_speed == IXGBE_LINK_SPEED_10GB_FULL) ?
-                              10 : 1);
+                       dev_info(&adapter->pdev->dev,
+                               "NIC Link is Up, %u Gbps\n",
+                               (link_speed == IXGBE_LINK_SPEED_10GB_FULL) ?
+                               10 : 1);
                        netif_carrier_on(netdev);
                        netif_tx_wake_all_queues(netdev);
                }
@@ -2250,7 +2251,7 @@ static void ixgbevf_watchdog_task(struct work_struct *work)
                adapter->link_up = false;
                adapter->link_speed = 0;
                if (netif_carrier_ok(netdev)) {
-                       hw_dbg(&adapter->hw, "NIC Link is Down\n");
+                       dev_info(&adapter->pdev->dev, "NIC Link is Down\n");
                        netif_carrier_off(netdev);
                        netif_tx_stop_all_queues(netdev);
                }