Optionally more debug output.
This commit is contained in:
parent
99fa9df344
commit
4ac2d8d392
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user