Mercurial > dovecot > core-2.2
changeset 21683:a7abc03aff58
lib: istream-sized should log errors with its own name, not parent's name
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 16 May 2016 20:17:41 +0300 |
parents | 7945fd42b09f |
children | 794d82d6db5f |
files | src/lib/istream-sized.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/istream-sized.c Mon May 09 11:08:33 2016 +0300 +++ b/src/lib/istream-sized.c Mon May 16 20:17:41 2016 +0300 @@ -91,7 +91,7 @@ error = sstream->error_callback(&data, sstream->error_context); io_stream_set_error(&stream->iostream, "%s", error); i_error("read(%s) failed: %s", - i_stream_get_name(stream->parent), + i_stream_get_name(&stream->istream), stream->iostream.error); pos = left; stream->istream.eof = TRUE; @@ -105,7 +105,7 @@ error = sstream->error_callback(&data, sstream->error_context); io_stream_set_error(&stream->iostream, "%s", error); i_error("read(%s) failed: %s", - i_stream_get_name(stream->parent), + i_stream_get_name(&stream->istream), stream->iostream.error); stream->istream.stream_errno = EINVAL; }