From: hno <> Date: Wed, 23 Oct 2002 03:12:51 +0000 (+0000) Subject: icmp debug section cleanups by Guido X-Git-Tag: SQUID_3_0_PRE1~581 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0373b2df3c2b625ed7cafa72a5d28eeec9b7e44b;p=thirdparty%2Fsquid.git icmp debug section cleanups by Guido --- diff --git a/src/icmp.cc b/src/icmp.cc index 6ea9081737..592c522c48 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -1,6 +1,6 @@ /* - * $Id: icmp.cc,v 1.79 2002/10/21 16:12:47 hno Exp $ + * $Id: icmp.cc,v 1.80 2002/10/22 21:12:51 hno Exp $ * * DEBUG: section 37 ICMP Routines * AUTHOR: Duane Wessels @@ -79,7 +79,7 @@ icmpRecv(int unused1, void *unused2) sizeof(pingerReplyData), 0); if (n < 0) { - debug(50, 1) ("icmpRecv: recv: %s\n", xstrerror()); + debug(37, 1) ("icmpRecv: recv: %s\n", xstrerror()); if (++fail_count == 10 || errno == ECONNREFUSED) icmpClose(); return; @@ -117,7 +117,7 @@ icmpSend(pingerEchoData * pkt, int len) inet_ntoa(pkt->to), (int) pkt->opcode, pkt->psize); x = comm_udp_send(icmp_sock, (char *) pkt, len, 0); if (x < 0) { - debug(50, 1) ("icmpSend: send: %s\n", xstrerror()); + debug(37, 1) ("icmpSend: send: %s\n", xstrerror()); if (errno == ECONNREFUSED || errno == EPIPE) { icmpClose(); return; @@ -209,7 +209,7 @@ icmpOpen(void) fd_note(icmp_sock, "pinger"); commSetSelect(icmp_sock, COMM_SELECT_READ, icmpRecv, NULL, 0); commSetTimeout(icmp_sock, -1, NULL, NULL); - debug(29, 1) ("Pinger socket opened on FD %d\n", icmp_sock); + debug(37, 1) ("Pinger socket opened on FD %d\n", icmp_sock); #endif } @@ -219,7 +219,7 @@ icmpClose(void) #if USE_ICMP if (icmp_sock < 0) return; - debug(29, 1) ("Closing Pinger socket on FD %d\n", icmp_sock); + debug(37, 1) ("Closing Pinger socket on FD %d\n", icmp_sock); comm_close(icmp_sock); icmp_sock = -1; #endif