aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/ChangeLog4
-rw-r--r--util/iobuf.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index 3f4a58bac..1c84af189 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-26 David Shaw <[email protected]>
+
+ * iobuf.c (iobuf_flush): Only print debug info if debugging is on.
+
2002-11-13 David Shaw <[email protected]>
* secmem.c (lock_pool) [__CYGWIN__]: Don't print secmem warning.
diff --git a/util/iobuf.c b/util/iobuf.c
index 953d9f3df..415fc6d20 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -1587,7 +1587,8 @@ iobuf_flush(IOBUF a)
char *newbuf;
size_t newsize = a->d.size + 8192;
- log_debug("increasing temp iobuf from %lu to %lu\n",
+ if( DBG_IOBUF )
+ log_debug("increasing temp iobuf from %lu to %lu\n",
(ulong)a->d.size, (ulong)newsize );
newbuf = m_alloc( newsize );
memcpy( newbuf, a->d.buf, a->d.len );