summaryrefslogtreecommitdiffstats
path: root/lib/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stream.c b/lib/stream.c
index b4c16977..1fce7103 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -853,7 +853,7 @@ stream_read_try(struct stream *s, int fd, size_t size)
/* Error: was it transient (return -2) or fatal (return -1)? */
if (ERRNO_IO_RETRY(errno))
return -2;
- zlog_warn("%s: read failed on fd %d: %s", __func__, fd, safe_strerror(errno));
+ zlog_warn("%s: read failed on fd %d: %s", __func__, fd, errtoa(errno, 0).str);
return -1;
}
@@ -885,7 +885,7 @@ stream_recvfrom (struct stream *s, int fd, size_t size, int flags,
/* Error: was it transient (return -2) or fatal (return -1)? */
if (ERRNO_IO_RETRY(errno))
return -2;
- zlog_warn("%s: read failed on fd %d: %s", __func__, fd, safe_strerror(errno));
+ zlog_warn("%s: read failed on fd %d: %s", __func__, fd, errtoa(errno, 0).str);
return -1;
}