summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-11-18 17:28:54 +0100
committerLinus Nordberg <linus@nordberg.se>2013-11-18 17:28:54 +0100
commit05ae3fb2a358715af2224176da85af0d3f2ab0bf (patch)
treeb97b4097ad37ab18749d11567b41291c3baab59d
parent049e72ddaa0cd24fce2d7550e604fc47ec7f9b3b (diff)
Add a debug printout when dropping an incoming response message.
Also, terminate another debug message with \n.
-rw-r--r--lib/udp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/udp.c b/lib/udp.c
index 36af084..c00f215 100644
--- a/lib/udp.c
+++ b/lib/udp.c
@@ -91,7 +91,7 @@ _evcb (evutil_socket_t fd, short what, void *user_data)
{
/* FIXME: Really shouldn't happen since we've been told
that fd is readable! */
- rs_debug (("%s: EAGAIN reading UDP packet -- wot?"));
+ rs_debug (("%s: EAGAIN reading UDP packet -- wot?\n"));
goto err_out;
}
@@ -121,6 +121,8 @@ _evcb (evutil_socket_t fd, short what, void *user_data)
Don't touch it afterwards -- it might have been freed. */
if (pkt->conn->callbacks.received_cb)
pkt->conn->callbacks.received_cb (pkt, pkt->conn->user_data);
+ else
+ rs_debug (("%s: no received-callback -- dropping packet\n", __func__));
}
else if (what & EV_WRITE)
{