OSDN Git Service

e1000e: Use netdev_info instead of pr_info for link messages
authorAlexander Duyck <alexander.h.duyck@linux.intel.com>
Thu, 31 Oct 2019 16:58:51 +0000 (09:58 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 31 Dec 2019 22:25:41 +0000 (14:25 -0800)
commitc557a4b3f73837bf074e643e163a37f848c9781c
treeb40cc3b858149f9e307cbb3b51bec36708dd171a
parent9513d2a5dc7f3f2c037bfd2ea35264cc783b954e
e1000e: Use netdev_info instead of pr_info for link messages

Replace the pr_info calls with netdev_info in all cases related to the
netdevice link state.

As a result of this patch the link messages will change as shown below.
Before:
e1000e: ens3 NIC Link is Down
e1000e: ens3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

After:
e1000e 0000:00:03.0 ens3: NIC Link is Down
e1000e 0000:00:03.0 ens3: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c