From: Sven M. Hallberg Date: Thu, 11 Sep 2014 19:56:02 +0000 (+0200) Subject: remove debug output on network traffic X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=5f7ef478c0571c3b833b4486bae73bd4b7ddbb3d;p=catta remove debug output on network traffic --- 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; }