diff options
author | David Shaw <[email protected]> | 2002-12-26 20:58:23 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-12-26 20:58:23 +0000 |
commit | 7282f79c2e7f0c3e176fea17e750bd80c256c923 (patch) | |
tree | a831725a9780448222b7d7d6dcfe6ab141be995c | |
parent | Simple script to create samplekeys.asc. CVS only. (diff) | |
download | gnupg-7282f79c2e7f0c3e176fea17e750bd80c256c923.tar.gz gnupg-7282f79c2e7f0c3e176fea17e750bd80c256c923.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 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 ); |