aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-01-14 18:17:32 +0000
committerWayne Davison <wayned@samba.org>2005-01-14 18:17:32 +0000
commitbd9fca47087cef1fc2d63f6f198d0d30da9ce6a4 (patch)
treed1204b964eddcd3ae1cbd73ea159c4c1aadd0c76 /io.c
parent14d496cc8b5dceffbb58b08bdac530def620eecc (diff)
downloadandroid_external_rsync-bd9fca47087cef1fc2d63f6f198d0d30da9ce6a4.tar.gz
android_external_rsync-bd9fca47087cef1fc2d63f6f198d0d30da9ce6a4.tar.bz2
android_external_rsync-bd9fca47087cef1fc2d63f6f198d0d30da9ce6a4.zip
For the "unexpected tag" or "multiplexing overflow" messages, we
now output who_am_i() so we know who had the problem.
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/io.c b/io.c
index 62880fba..1cfcd722 100644
--- a/io.c
+++ b/io.c
@@ -679,8 +679,9 @@ static int readfd_unbuffered(int fd, char *buf, size_t len)
case MSG_INFO:
case MSG_ERROR:
if (remaining >= sizeof line) {
- rprintf(FERROR, "multiplexing overflow %d:%ld\n\n",
- tag, (long)remaining);
+ rprintf(FERROR,
+ "[%s] multiplexing overflow %d:%ld\n\n",
+ who_am_i(), tag, (long)remaining);
exit_cleanup(RERR_STREAMIO);
}
read_loop(fd, line, remaining);
@@ -688,7 +689,8 @@ static int readfd_unbuffered(int fd, char *buf, size_t len)
remaining = 0;
break;
default:
- rprintf(FERROR, "unexpected tag %d\n", tag);
+ rprintf(FERROR, "[%s] unexpected tag %d\n",
+ who_am_i(), tag);
exit_cleanup(RERR_STREAMIO);
}
}