From b95495e71ddf094881f36829baaadacd3fb6fcd5 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 12 Jan 2018 22:55:26 +0800 Subject: [PATCH] Remove the log of sockaddr_cmp --- src/netutils.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/netutils.c b/src/netutils.c index 6333f0ba..8f6e7fc8 100644 --- a/src/netutils.c +++ b/src/netutils.c @@ -207,9 +207,6 @@ sockaddr_cmp(struct sockaddr_storage *addr1, return -1; if (p1_in->sin_family > p2_in->sin_family) return 1; - if (verbose) { - LOGI("sockaddr_cmp: sin_family equal? %d", p1_in->sin_family == p2_in->sin_family); - } /* compare ip4 */ if (p1_in->sin_family == AF_INET) { /* just order it, ntohs not required */ @@ -217,9 +214,6 @@ sockaddr_cmp(struct sockaddr_storage *addr1, return -1; if (p1_in->sin_port > p2_in->sin_port) return 1; - if (verbose) { - LOGI("sockaddr_cmp: sin_port equal? %d", p1_in->sin_port == p2_in->sin_port); - } return memcmp(&p1_in->sin_addr, &p2_in->sin_addr, INET_SIZE); } else if (p1_in6->sin6_family == AF_INET6) { /* just order it, ntohs not required */ @@ -227,9 +221,6 @@ sockaddr_cmp(struct sockaddr_storage *addr1, return -1; if (p1_in6->sin6_port > p2_in6->sin6_port) return 1; - if (verbose) { - LOGI("sockaddr_cmp: sin6_port equal? %d", p1_in6->sin6_port == p2_in6->sin6_port); - } return memcmp(&p1_in6->sin6_addr, &p2_in6->sin6_addr, INET6_SIZE); } else {