summaryrefslogtreecommitdiff
path: root/send-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'send-stream.c')
-rw-r--r--send-stream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/send-stream.c b/send-stream.c
index 78f2571a..3b8e39c9 100644
--- a/send-stream.c
+++ b/send-stream.c
@@ -61,8 +61,7 @@ static int read_buf(struct btrfs_send_stream *sctx, char *buf, size_t len)
rbytes = read(sctx->fd, buf + pos, len - pos);
if (rbytes < 0) {
ret = -errno;
- error("read from stream failed: %s",
- strerror(-ret));
+ error("read from stream failed: %m");
goto out;
}
if (rbytes == 0) {