From 8901a07fdbb1414ed28d86e55e6618cf228fad4d Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Tue, 9 Apr 2002 04:23:18 +0000 Subject: [PATCH] Clarify "error writing %d bytes" message. --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io.c b/io.c index 3349b83b..07e1feb5 100644 --- a/io.c +++ b/io.c @@ -464,8 +464,8 @@ static void writefd_unbuffered(int fd,char *buf,size_t len) * across the stream */ io_multiplexing_close(); rprintf(FERROR, RSYNC_NAME - ": error writing %d unbuffered bytes" - " - exiting: %s\n", len, + ": writefd_unbuffered failed to write %ld bytes: %s\n", + (long) len, strerror(errno)); exit_cleanup(RERR_STREAMIO); } -- 2.34.1