]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: use dev_info() before netdev is registered
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Tue, 28 May 2019 07:02:07 +0000 (07:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 20:26:18 +0000 (13:26 -0700)
commitaf64935213c42245e7937af0e4a359e1be7946b2
tree5ae8a599cfde305293cf7af70a9d4db2bf2f8169
parent1b3855aba812389ba4baa8221b90ed694dd1f3f7
net: stmmac: use dev_info() before netdev is registered

Before the netdev is registered, calling netdev_info() will emit
something as "(unnamed net device) (uninitialized)", looks confusing.

Before this patch:
[    3.155028] stmmaceth f7b60000.ethernet (unnamed net_device) (uninitialized): device MAC address 52:1a:55:18:9e:9d

After this patch:
[    3.155028] stmmaceth f7b60000.ethernet: device MAC address 52:1a:55:18:9e:9d

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c