Skip to content

Commit

Permalink
lib: istream-sized should log errors with its own name, not parent's …
Browse files Browse the repository at this point in the history
…name
  • Loading branch information
sirainen authored and GitLab committed May 18, 2016
1 parent 0e0fe9b commit 1fb4c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/istream-sized.c
Expand Up @@ -90,7 +90,7 @@ static ssize_t i_stream_sized_read(struct istream_private *stream)
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;
Expand All @@ -104,7 +104,7 @@ static ssize_t i_stream_sized_read(struct istream_private *stream)
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;
}
Expand Down

0 comments on commit 1fb4c7c

Please sign in to comment.