]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Slight cleanup of interface event logging.
authordes <des@FreeBSD.org>
Fri, 11 May 2018 00:19:49 +0000 (00:19 +0000)
committerdes <des@FreeBSD.org>
Fri, 11 May 2018 00:19:49 +0000 (00:19 +0000)
commit42f7c6ed63d45468626d645a1f37deb8d1042071
tree1466afaf193b2cbaa9b7bfb065bba3801993207a
parent58d2db41a5863dc55d4f0abc58c09812d9b681c6
Slight cleanup of interface event logging.

Make if_printf() use vlog() instead of vprintf().  This means it can no
longer return the number of characters printed, as it used to, but every
single call to if_printf() in the entire kernel ignores the return value
anyway; just return 0 so we don't have to change the prototype.

Consistently use if_printf() throughout sys/net/if.c, instead of a
mixture of if_printf() and log().

In ifa_maintain_loopback_route(), don't needlessly log an error if we
either failed to add a route because it already existed or failed to
remove one because it did not.  We still return an error code, though.

MFC after: 1 week
sys/net/if.c