Re: BUGFIX: wrong debug section in icmp.c

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 22 Oct 2002 23:14:51 +0200

Applied to HEAD and Squid-2 (but not 2.5)

On Tuesday 22 October 2002 22.52, Guido Serassio wrote:
> Hi,
>
> There are some wrong debug sections in icmp.c.
> This is the patch.
>
> Regards
>
> Guido
>
> Index: icmp.c
> ===================================================================
> RCS file: /cvsroot/squid/squid/src/icmp.c,v
> retrieving revision 1.6
> diff -u -p -r1.6 icmp.c
> --- icmp.c 6 Apr 2002 11:34:50 -0000 1.6
> +++ icmp.c 22 Oct 2002 20:48:50 -0000
> @@ -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 = 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
>
>
> -
> =======================================================
> Serassio Guido
> Via Albenga, 11/4 10134 -
> Torino - ITALY E-mail: guido.serassio@serassio.it
> WWW: http://www.serassio.it
Received on Tue Oct 22 2002 - 15:15:08 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:17:00 MST