From: Timo Sirainen Date: Thu, 2 Feb 2012 15:20:02 +0000 (+0200) Subject: istream-seekable: If we panic about stream not being seekable, log the stream name... X-Git-Tag: 2.1.rc6~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ec30d84a736a2d0726b600213dcf630ff28bdeb;p=thirdparty%2Fdovecot%2Fcore.git istream-seekable: If we panic about stream not being seekable, log the stream name/offset. --- diff --git a/src/lib/istream-seekable.c b/src/lib/istream-seekable.c index 1962e18c13..117b0d2062 100644 --- a/src/lib/istream-seekable.c +++ b/src/lib/istream-seekable.c @@ -321,7 +321,9 @@ i_stream_seekable_stat(struct istream_private *stream, bool exact) if (ret == 0) { i_panic("i_stream_stat() used for non-blocking " - "seekable stream"); + "seekable stream %s offset %"PRIuUOFF_T, + i_stream_get_name(sstream->cur_input), + sstream->cur_input->v_offset); } i_stream_skip(&stream->istream, stream->pos - stream->skip); i_stream_seek(&stream->istream, old_offset);