Optionally more debug output.

This commit is contained in:
Philip Homburg 2005-09-30 12:50:14 +00:00
parent 99fa9df344
commit 4ac2d8d392

View File

@ -92,6 +92,11 @@ static ssize_t _udp_recvfrom(int socket, void *_RESTRICT buffer, size_t length,
if (r == -1)
{
t_errno= errno;
#if DEBUG
fprintf(stderr, "recvfrom(udp): read failed: %s\n",
strerror(errno));
fprintf(stderr, "udp opt flags = 0x%x\n", udpoptp->nwuo_flags);
#endif
free(buf);
errno= t_errno;
return -1;