Skip to content

Commit

Permalink
Remove unnecessary wg debug printf on transmit.
Browse files Browse the repository at this point in the history
It's quite often the case there isn't a configured peer, making
this console printf unnecessarily alarming.

Remove for now: a counter could be used here and possibly a
rate-limited info log.

Ticket: #5186
  • Loading branch information
grehan-freebsd authored and rbgarga committed Jan 19, 2021
1 parent 2766dc9 commit 0f0dde6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sys/dev/if_wg/module/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ wg_transmit(struct ifnet *ifp, struct mbuf *m)
peer = wg_route_lookup(&sc->sc_routes, m, OUT);
if (__predict_false(peer == NULL)) {
rc = ENOKEY;
printf("peer not found - dropping %p\n", m);
/* XXX log */
goto err;
}
Expand Down

0 comments on commit 0f0dde6

Please sign in to comment.