[dovecot-cvs] dovecot/src/lib buffer.c,1.23,1.24

cras at dovecot.org cras at dovecot.org
Sun Nov 7 17:17:17 EET 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv12332

Modified Files:
	buffer.c 
Log Message:
Print pool name for "buffer full" errors.



Index: buffer.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/buffer.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- buffer.c	23 Oct 2004 23:03:30 -0000	1.23
+++ buffer.c	7 Nov 2004 15:17:15 -0000	1.24
@@ -49,8 +49,9 @@
 
 	if (new_size > buf->alloc) {
 		if (!buf->dynamic) {
-			i_panic("Buffer full (%"PRIuSIZE_T" > %"PRIuSIZE_T")",
-				pos + data_size, buf->alloc);
+			i_panic("Buffer full (%"PRIuSIZE_T" > %"PRIuSIZE_T", "
+				"pool %s)", pos + data_size, buf->alloc,
+				buf->pool->get_name(buf->pool));
 		}
 
 		buffer_alloc(buf, nearest_power(new_size));



More information about the dovecot-cvs mailing list