diff options
author | Martin Pool <mbp@samba.org> | 2002-04-09 04:50:25 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-04-09 04:50:25 +0000 |
commit | eca2adb4b3a4ca095116f54e9e0a6df19f0bd149 (patch) | |
tree | ce02adfff12f60b29ec49157f867d2db1f11acf3 /io.c | |
parent | 4eea7793ea7f3a2b336aa68dc778ce7f9ee5cdbb (diff) | |
download | android_external_rsync-eca2adb4b3a4ca095116f54e9e0a6df19f0bd149.tar.gz android_external_rsync-eca2adb4b3a4ca095116f54e9e0a6df19f0bd149.tar.bz2 android_external_rsync-eca2adb4b3a4ca095116f54e9e0a6df19f0bd149.zip |
OK, we can now get phase messages if we fail in send_file_entry
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -57,8 +57,12 @@ extern struct stats stats; * remote instance crashed. Just giving the offset on the stream is * not very helpful. So instead we try to make io_phase_name point to * something useful. + * + * @todo Perhaps we want some simple stack functionality, but there's + * no need to overdo it. **/ -const char *io_phase_name = "unknown"; +const char *io_write_phase = "unknown"; +const char *io_read_phase = "unknown"; /** Ignore EOF errors while reading a module listing if the remote @@ -501,7 +505,7 @@ static void writefd_unbuffered(int fd,char *buf,size_t len) io_multiplexing_close(); rprintf(FERROR, RSYNC_NAME ": writefd_unbuffered failed to write %ld bytes: phase \"%s\": %s\n", - (long) len, io_phase_name, + (long) len, io_write_phase, strerror(errno)); exit_cleanup(RERR_STREAMIO); } |