* iobuf.c (iobuf_flush): Only print debug info if debugging is on.

This commit is contained in:
David Shaw 2002-12-26 20:58:23 +00:00
parent 005ac4d068
commit 7282f79c2e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-12-26 David Shaw <dshaw@jabberwocky.com>
* iobuf.c (iobuf_flush): Only print debug info if debugging is on.
2002-11-13 David Shaw <dshaw@jabberwocky.com>
* secmem.c (lock_pool) [__CYGWIN__]: Don't print secmem warning.

View File

@ -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 );