diff options
author | 2016-09-03 16:56:13 +0000 | |
---|---|---|
committer | 2016-09-03 16:56:13 +0000 | |
commit | a1984c2901357c8e35e5736d7bf8ae8827c11f6d (patch) | |
tree | c7464a4a4950890f774931b084dfde7c4c9d789a | |
parent | remove unneeded reach-around include (diff) | |
download | wireguard-openbsd-a1984c2901357c8e35e5736d7bf8ae8827c11f6d.tar.xz wireguard-openbsd-a1984c2901357c8e35e5736d7bf8ae8827c11f6d.zip |
remove testing printf that snuck in accidentally.
while here, bump an error counter if we cannot receive a packet
-rw-r--r-- | sys/net/bfd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/bfd.c b/sys/net/bfd.c index e82d20da750..1d12b234146 100644 --- a/sys/net/bfd.c +++ b/sys/net/bfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bfd.c,v 1.7 2016/09/03 16:47:26 phessler Exp $ */ +/* $OpenBSD: bfd.c,v 1.8 2016/09/03 16:56:13 phessler Exp $ */ /* * Copyright (c) 2016 Peter Hessler <phessler@openbsd.org> @@ -558,15 +558,13 @@ bfd_upcall(struct socket *so, caddr_t arg, int waitflag) struct uio uio; int flags, error; -printf("%s: packet\n", __func__); uio.uio_procp = NULL; do { uio.uio_resid = 1000000000; flags = MSG_DONTWAIT; error = soreceive(so, NULL, &uio, &m, NULL, &flags, 0); if (error && error != EAGAIN) { - /* XXX - handle errors */ -printf("%s soreceive error %d\n", __func__, error); + sc->error++; return; } if (m != NULL) |