]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
istream-seekable: If we panic about stream not being seekable, log the stream name...
authorTimo Sirainen <tss@iki.fi>
Thu, 2 Feb 2012 15:20:02 +0000 (17:20 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 2 Feb 2012 15:20:02 +0000 (17:20 +0200)
src/lib/istream-seekable.c

index 1962e18c139d122aadff02f4c81fdf427c222080..117b0d20626abbdcef50ae4b5f774e75f5d6fc5f 100644 (file)
@@ -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);