drivers: net: Don't print unpopulated net_device name
authorHarvey Hunt <harvey.hunt@imgtec.com>
Tue, 17 May 2016 13:33:27 +0000 (14:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 16:30:19 +0000 (12:30 -0400)
commit3274940bd3d87043c74aa444ff3b0dff56b3e9ea
treebd29527f6b5d71dd3fedf614e087bf88be6a2044
parent39651abd28146fff2bfac63d68a7a56250a4aead
drivers: net: Don't print unpopulated net_device name

For ethernet devices, net_device.name will be eth%d before
register_netdev() is called. Don't print the net_device name until
the format string is replaced.

Signed-off-by: Harvey Hunt <harvey.hunt@imgtec.com>
Cc: Marcel Ziswiler <marcel@ziswiler.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Barry Song <Baohua.Song@csr.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/davicom/dm9000.c
drivers/net/ethernet/micrel/ks8695net.c
drivers/net/ethernet/netx-eth.c