--- libaitrpc/src/aitrpc.c 2015/05/18 14:50:12 1.17.2.2 +++ libaitrpc/src/aitrpc.c 2015/05/18 15:00:54 1.17.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.c,v 1.17.2.2 2015/05/18 14:50:12 misho Exp $ +* $Id: aitrpc.c,v 1.17.2.3 2015/05/18 15:00:54 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -177,7 +177,6 @@ rpc_Read(int sock, int type, int flags, sockaddr_t * _ salen = sa2.ss.ss_len = sizeof(sockaddr_t); for (len = blen; len > 0; len -= ret, buf += ret) { - printf("%s_0. buf=%p len=%d\n", __func__, buf, len); if ((ret = poll(&pfd, 1, DEF_RPC_TIMEOUT * 1000)) < 1 || pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { if (ret) @@ -262,14 +261,10 @@ rpc_Read(int sock, int type, int flags, sockaddr_t * _ /* check RPC packet header */ if ((u_char*) rpc == buf) { if (type == SOCK_RAW) { - printf("raw: ret=%d\n", ret); hlen = sa->sa.sa_family == AF_INET ? sizeof(struct ip) : sizeof(struct ip6_hdr); ret -= hlen; - printf("raw-cx: ret=%d\n", ret); if (ret > 0) memmove(buf, buf + hlen, blen - hlen); - printf("%s ret=%d call_io=0x%x call_len=%d call_seq=%u\n", __func__, ret, rpc->call_io, ntohl(rpc->call_len), ntohl(rpc->call_seq)); - fflush(stdout); } /* 1st read for RPC header */ @@ -286,7 +281,6 @@ rpc_Read(int sock, int type, int flags, sockaddr_t * _ } /* calc estimated length */ blen = len = ntohl(rpc->call_len); - printf("blen=%d len=%d ret=%d\n", blen, len, ret); if (blen > AIT_LEN(pkt)) { AIT_RE_BUF(pkt, blen); buf = AIT_GET_BUF(pkt); @@ -298,7 +292,6 @@ rpc_Read(int sock, int type, int flags, sockaddr_t * _ if (type == SOCK_BPF) AIT_FREE_VAL(&v); - printf("exit from %s with ret=%d\n", __func__, ret); return ret; }