From 5f7ef478c0571c3b833b4486bae73bd4b7ddbb3d Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Thu, 11 Sep 2014 21:56:02 +0200 Subject: [PATCH] remove debug output on network traffic --- src/compat/windows/wincompat.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/compat/windows/wincompat.c b/src/compat/windows/wincompat.c index 9aecac4..3e6417e 100644 --- a/src/compat/windows/wincompat.c +++ b/src/compat/windows/wincompat.c @@ -138,7 +138,6 @@ ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags) msg->msg_flags = (int)wsamsg.dwFlags; // all flags that fit into dwFlags also fit into msg_flags (see above) - catta_log_debug("recvmsg: %u bytes received", (unsigned int)bytesrcvd); return bytesrcvd; } @@ -215,17 +214,6 @@ ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags) return -1; } - // XXX debug, remove - { - char where[64]; - struct sockaddr *sa = msg->msg_name; - - if(sa->sa_family == AF_INET) - inet_ntop(sa->sa_family, &((struct sockaddr_in *)sa)->sin_addr, where, sizeof(where)); - else - inet_ntop(sa->sa_family, &((struct sockaddr_in6 *)sa)->sin6_addr, where, sizeof(where)); - catta_log_debug("sendmsg: %u bytes to %s", (unsigned int)bytessent, where); - } return bytessent; } -- 2.39.5