cyrus-imapd/cyrus-imapd-2.3.15-nodebug.patch

74 lines
2.7 KiB
Diff

diff -up cyrus-imapd-2.3.15/lib/prot.c.nodebug cyrus-imapd-2.3.15/lib/prot.c
--- cyrus-imapd-2.3.15/lib/prot.c.nodebug 2009-11-05 14:20:53.845020152 +0100
+++ cyrus-imapd-2.3.15/lib/prot.c 2009-11-05 14:21:35.932145246 +0100
@@ -329,7 +329,7 @@ static int is_incompressible(const char
while (sig->type) {
if (n >= sig->len && !memcmp(p, sig->sig, sig->len)) {
- syslog(LOG_DEBUG, "data is %s", sig->type);
+// syslog(LOG_DEBUG, "data is %s", sig->type);
return 1;
}
sig++;
@@ -642,14 +642,14 @@ int prot_fill(struct protstream *s)
s->zstrm->next_out = s->zbuf;
s->zstrm->avail_out = s->zbuf_size;
- syslog(LOG_DEBUG, "inflate(%d bytes)", s->cnt);
+// syslog(LOG_DEBUG, "inflate(%d bytes)", s->cnt);
do {
if (!s->zstrm->avail_out) {
/* Need more space to decompress */
- syslog(LOG_DEBUG,
- "growing decompress buffer from %d to %d bytes",
- s->zbuf_size, s->zbuf_size + PROT_BUFSIZE);
+// syslog(LOG_DEBUG,
+// "growing decompress buffer from %d to %d bytes",
+// s->zbuf_size, s->zbuf_size + PROT_BUFSIZE);
s->zbuf = (unsigned char *)
xrealloc(s->zbuf, s->zbuf_size + PROT_BUFSIZE);
@@ -670,7 +670,7 @@ int prot_fill(struct protstream *s)
s->ptr = s->zbuf;
s->cnt = s->zbuf_size - s->zstrm->avail_out;
- syslog(LOG_DEBUG, " => decompressed to %d bytes", s->cnt);
+// syslog(LOG_DEBUG, " => decompressed to %d bytes", s->cnt);
}
#endif /* HAVE_ZLIB */
@@ -760,8 +760,8 @@ static int prot_flush_encode(struct prot
* Oversize the buffer, so we (hopefully) eliminate
* multiple small incremental reallocations.
*/
- syslog(LOG_DEBUG, "growing compress buffer from %u to %lu bytes",
- s->zbuf_size, def_size + PROT_BUFSIZE);
+// syslog(LOG_DEBUG, "growing compress buffer from %u to %lu bytes",
+// s->zbuf_size, def_size + PROT_BUFSIZE);
s->zbuf_size = def_size + PROT_BUFSIZE;
s->zbuf = (unsigned char *) xrealloc(s->zbuf, s->zbuf_size);
@@ -772,9 +772,9 @@ static int prot_flush_encode(struct prot
s->zstrm->next_out = s->zbuf;
s->zstrm->avail_out = s->zbuf_size;
- syslog(LOG_DEBUG, "deflate(%d bytes, level=%d, flush=%s)",
- left, s->zlevel,
- zflush == Z_FULL_FLUSH ? "FULL" : "SYNC");
+// syslog(LOG_DEBUG, "deflate(%d bytes, level=%d, flush=%s)",
+// left, s->zlevel,
+// zflush == Z_FULL_FLUSH ? "FULL" : "SYNC");
if (s->boundary) {
/* Set (new) compression level */
@@ -791,7 +791,7 @@ static int prot_flush_encode(struct prot
ptr = s->zbuf;
left = s->zbuf_size - s->zstrm->avail_out;
- syslog(LOG_DEBUG, " => compressed to %d bytes", left);
+// syslog(LOG_DEBUG, " => compressed to %d bytes", left);
}
#endif /* HAVE_ZLIB */