From: Veaceslav Falico Date: Thu, 17 Jul 2014 17:46:09 +0000 (+0200) Subject: net: use dev->name in netdev_pr* when it's available X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~125^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6f854d57d704a97adbf952ef0948acc68f3312c;p=pandora-kernel.git 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" CC: Tom Gundersen Signed-off-by: Veaceslav Falico Acked-by: Tom Gundersen Signed-off-by: David S. Miller --- Reading git-diff-tree failed