net/core: tidy up an error message
authorQian Cai <cai@gmx.us>
Sun, 2 Dec 2018 02:11:19 +0000 (21:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Dec 2018 00:14:51 +0000 (16:14 -0800)
commitbf29e9e9b6d2f09cdbf39b48d028f0b49e944f85
tree23ae1651e3830d2ee772abd44f2c56e46ecdb341
parenta74515604a7b171f2702bdcbd1e231225fb456d0
net/core: tidy up an error message

netif_napi_add() could report an error like this below due to it allows
to pass a format string for wildcarding before calling
dev_get_valid_name(),

"netif_napi_add() called with weight 256 on device eth%d"

For example, hns_enet_drv module does this.

hns_nic_try_get_ae
  hns_nic_init_ring_data
    netif_napi_add
  register_netdev
    dev_get_valid_name

Hence, make it a bit more human-readable by using netdev_err_once()
instead.

Signed-off-by: Qian Cai <cai@gmx.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c