OSDN Git Service

igc: Use netdev log helpers in igc_main.c
authorAndre Guedes <andre.guedes@intel.com>
Wed, 25 Mar 2020 00:38:15 +0000 (17:38 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 18 May 2020 22:06:28 +0000 (15:06 -0700)
commit25f06eff7582ae41c7fdaa30a4a2348122f7a907
treee117b7b69f39ca070a1e2e3c1d23e5884a91783f
parent8e8204a4f3e32ffb1804196f2aa252684ee663e8
igc: Use netdev log helpers in igc_main.c

In igc_main.c we print log messages using both dev_* and netdev_*
helpers, generating inconsistent output. Since this is a network device
driver, we should preferably use netdev_* helpers because they append
the interface name to the message, helping making sense out of the logs.

This patch converts all dev_* calls to netdev_*. There is only two
exceptions:
  1) calls wihtin igc_probe (net_device has not been registered yet)
  2) calls in igc_init_module (module initialization).

It also takes this opportunity to improve some messages.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c