diff options
author | David Shaw <[email protected]> | 2002-12-26 20:35:20 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-12-26 20:35:20 +0000 |
commit | ad79ac8a8047cf228c6226d4d94e167d2103a1ae (patch) | |
tree | 961b04dc584b5402c2d42132966f819972808f5b | |
parent | 2002-12-23 Timo Schulz <[email protected]> (diff) | |
download | gnupg-ad79ac8a8047cf228c6226d4d94e167d2103a1ae.tar.gz gnupg-ad79ac8a8047cf228c6226d4d94e167d2103a1ae.zip |
* iobuf.c (iobuf_flush): Only print debug info if debugging is on.
-rw-r--r-- | util/ChangeLog | 4 | ||||
-rw-r--r-- | util/iobuf.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 6e1097dc8..792236acd 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-09 Werner Koch <[email protected]> * ttyio.c (TERMDEVICE): Removed. 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 ); |