Re: [PATCH v2 net] drivers: net: Don't print unpopulated net_device name

From: David Miller
Date: Tue May 17 2016 - 12:31:28 EST


From: Harvey Hunt <harvey.hunt@xxxxxxxxxx>
Date: Tue, 17 May 2016 14:33:27 +0100

> 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@xxxxxxxxxx>
> Cc: Marcel Ziswiler <marcel@xxxxxxxxxxxx>
> Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx>
> Cc: Barry Song <Baohua.Song@xxxxxxx>
> Cc: netdev@xxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> ---
> v1 -> v2:
> - Replace ifconfig with ip
> - Delay printk until the netdev name is known

Yeah this looks a lot better, applied, thanks!