net: print a notification on device rename
authorVeaceslav Falico <vfalico@gmail.com>
Thu, 17 Jul 2014 18:33:32 +0000 (20:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 03:44:25 +0000 (20:44 -0700)
commit6fe82a39e583a50f28f03b294df79c9de9ec0de4
treed6571b3ab0d392a92e9012053eacd0848b783787
parent4ec6837804e4a0e096930f9d989952cb081eae2f
net: print a notification on device rename

Currently it's done silently (from the kernel part), and thus it might be
hard to track the renames from logs.

Add a simple netdev_info() to notify the rename, but only in case the
previous name was valid.

CC: "David S. Miller" <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Vlad Yasevich <vyasevic@redhat.com>
CC: stephen hemminger <stephen@networkplumber.org>
CC: Jerry Chu <hkchu@google.com>
CC: Ben Hutchings <bhutchings@solarflare.com>
CC: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c