aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorVeaceslav Falico <vfalico@gmail.com>2014-07-17 19:46:09 +0200
committerDavid S. Miller <davem@davemloft.net>2014-07-20 20:38:42 -0700
commitc6f854d57d704a97adbf952ef0948acc68f3312c (patch)
tree2b8a21dfe3c0af6c2a879b78d01ef6e6f024f7b3 /lib/dynamic_debug.c
parentbonding: make it possible to have unlimited nested upper vlans (diff)
downloadlinux-dev-c6f854d57d704a97adbf952ef0948acc68f3312c.tar.xz
linux-dev-c6f854d57d704a97adbf952ef0948acc68f3312c.zip
net: use dev->name in netdev_pr* when it's available
netdev_name() returns dev->name only when the net_device is in NETREG_REGISTERED state. However, dev->name is always populated on creation, so we can easily use it. There are two cases when there's no real name - when it's an empty string or when the name is in form of "eth%d", then netdev_name() returns "unnamed net_device". CC: "David S. Miller" <davem@davemloft.net> CC: Tom Gundersen <teg@jklm.no> Signed-off-by: Veaceslav Falico <vfalico@gmail.com> Acked-by: Tom Gundersen <teg@jklm.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions