Skip to content

Commit

Permalink
Add a debug printout when dropping an incoming response message.
Browse files Browse the repository at this point in the history
Also, terminate another debug message with \n.
  • Loading branch information
Linus Nordberg committed Nov 18, 2013
1 parent 049e72d commit 05ae3fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 05ae3fb

Please sign in to comment.