aboutsummaryrefslogtreecommitdiffstats
path: root/util/iobuf.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-12-26 20:58:23 +0000
committerDavid Shaw <[email protected]>2002-12-26 20:58:23 +0000
commit7282f79c2e7f0c3e176fea17e750bd80c256c923 (patch)
treea831725a9780448222b7d7d6dcfe6ab141be995c /util/iobuf.c
parentSimple script to create samplekeys.asc. CVS only. (diff)
downloadgnupg-7282f79c2e7f0c3e176fea17e750bd80c256c923.tar.gz
gnupg-7282f79c2e7f0c3e176fea17e750bd80c256c923.zip
* iobuf.c (iobuf_flush): Only print debug info if debugging is on.
Diffstat (limited to 'util/iobuf.c')
-rw-r--r--util/iobuf.c3
1 files changed, 2 insertions, 1 deletions
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 );