From 0b29fe4449f20630ce1a2c94fa6e0a5342c06bdc Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 29 Nov 1996 10:28:50 +0000 Subject: [PATCH] change debug levels --- src/comm.cc | 5 ++--- src/main.cc | 4 ++-- src/neighbors.cc | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/comm.cc b/src/comm.cc index 5ab6a8d2a0..fbfd7737d1 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.111 1996/11/28 07:31:47 wessels Exp $ + * $Id: comm.cc,v 1.112 1996/11/29 03:28:50 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -1208,8 +1208,7 @@ commHandleRead(int fd, RWStateData * state) } else { /* Len == 0 means connection closed; otherwise would not have been * called by comm_select(). */ - debug(50, len == 0 ? 2 : 1, - "commHandleRead: FD %d: read failure: %s\n", + debug(50, 2, "commHandleRead: FD %d: read failure: %s\n", fd, len == 0 ? "connection closed" : xstrerror()); RWStateCallbackAndFree(fd, COMM_ERROR); diff --git a/src/main.cc b/src/main.cc index 1d761dbbea..21d1d35d27 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,5 +1,5 @@ /* - * $Id: main.cc,v 1.117 1996/11/28 07:27:38 wessels Exp $ + * $Id: main.cc,v 1.118 1996/11/29 03:28:52 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -562,7 +562,7 @@ main(int argc, char **argv) time_t loop_delay; /* call mallopt() before anything else */ -#if 0 && HAVE_MALLOPT +#if HAVE_MALLOPT #ifdef M_GRAIN /* Round up all sizes to a multiple of this */ mallopt(M_GRAIN, 16); diff --git a/src/neighbors.cc b/src/neighbors.cc index 020f4474aa..1427399006 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,5 +1,5 @@ /* - * $Id: neighbors.cc,v 1.93 1996/11/28 07:31:52 wessels Exp $ + * $Id: neighbors.cc,v 1.94 1996/11/29 03:28:53 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -602,12 +602,12 @@ neighborsUdpAck(int fd, const char *url, icp_common_t * header, const struct soc return; } if (mem == NULL) { - debug(15, 1, "Ignoring %s for missing mem_obj: %s\n", opcode_d, url); + debug(15, 2, "Ignoring %s for missing mem_obj: %s\n", opcode_d, url); neighborCountIgnored(e, opcode); return; } if (entry->ping_status != PING_WAITING) { - debug(15, 1, "neighborsUdpAck: Unexpected %s for %s\n", opcode_d, url); + debug(15, 2, "neighborsUdpAck: Unexpected %s for %s\n", opcode_d, url); neighborCountIgnored(e, opcode); return; } -- 2.47.2