From: Philip Homburg Date: Fri, 30 Sep 2005 12:50:14 +0000 (+0000) Subject: Optionally more debug output. X-Git-Tag: v3.1.2a~688 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=4ac2d8d392aa93f5b8090a17e7e2fdd9d5c38231;p=minix.git Optionally more debug output. --- diff --git a/lib/ip/recvfrom.c b/lib/ip/recvfrom.c index ee09f837f..7f54de7ed 100644 --- a/lib/ip/recvfrom.c +++ b/lib/ip/recvfrom.c @@ -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;