Clarify "error writing %d bytes" message.
authorMartin Pool <mbp@samba.org>
Tue, 9 Apr 2002 04:23:18 +0000 (04:23 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 9 Apr 2002 04:23:18 +0000 (04:23 +0000)
io.c

diff --git a/io.c b/io.c
index 3349b83..07e1feb 100644 (file)
--- 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
                                 * 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);
                        }
                                        strerror(errno));
                                exit_cleanup(RERR_STREAMIO);
                        }