OSDN Git Service

tun: drop useless debugging statements
authorMichal Kubecek <mkubecek@suse.cz>
Wed, 4 Mar 2020 16:24:09 +0000 (17:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2020 05:38:02 +0000 (21:38 -0800)
commit182094348a08e712b41c0dbee92791bfa3b76d53
tree78f80e1812c947b6cba88b5fae156ee9937998ee
parent7522416d2569cb3767c84beaa602496c2753a692
tun: drop useless debugging statements

Some of the tun_debug() statements only inform us about entering
a function which can be easily achieved with ftrace or kprobe. As
tun_debug() is no-op unless TUN_DEBUG is set which requires editing the
source and recompiling, setting up ftrace or kprobe is easier. Drop these
debug statements.

Also drop the tun_debug() statement informing about SIOCSIFHWADDR ioctl.
We can monitor these through rtnetlink and it makes little sense to log
address changes through ioctl but not changes through rtnetlink. Moreover,
this tun_debug() is called even if the actual address change fails which
makes it even less useful.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c