aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-06-01 08:04:47 +0000
committerWayne Davison <wayned@samba.org>2006-06-01 08:04:47 +0000
commitb64ee91a4138babc77ea06bb48bdad327a8b99b3 (patch)
tree891a1db371e7ef2448888177e8b4b65c9e97ea45 /main.c
parentd0133e6ebac72b659d773b059032d56faa3a0314 (diff)
downloadandroid_external_rsync-b64ee91a4138babc77ea06bb48bdad327a8b99b3.tar.gz
android_external_rsync-b64ee91a4138babc77ea06bb48bdad327a8b99b3.tar.bz2
android_external_rsync-b64ee91a4138babc77ea06bb48bdad327a8b99b3.zip
Changed rprintf() messages that started with a newline into two
rprintf() calls (the first of which just outputs an empty line).
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/main.c b/main.c
index 21111f11..3e190956 100644
--- a/main.c
+++ b/main.c
@@ -223,7 +223,8 @@ static void handle_stats(int f)
static void output_summary(void)
{
if (do_stats) {
- rprintf(FINFO,"\nNumber of files: %d\n", stats.num_files);
+ rprintf(FCLIENT, "\n");
+ rprintf(FINFO,"Number of files: %d\n", stats.num_files);
rprintf(FINFO,"Number of files transferred: %d\n",
stats.num_transferred_files);
rprintf(FINFO,"Total file size: %s bytes\n",
@@ -250,8 +251,9 @@ static void output_summary(void)
}
if (verbose || do_stats) {
+ rprintf(FCLIENT, "\n");
rprintf(FINFO,
- "\nsent %s bytes received %s bytes %s bytes/sec\n",
+ "sent %s bytes received %s bytes %s bytes/sec\n",
human_num(total_written), human_num(total_read),
human_dnum((total_written + total_read)/(0.5 + (endtime - starttime)), 2));
rprintf(FINFO, "total size is %s speedup is %.2f\n",
@@ -274,7 +276,8 @@ static void show_malloc_stats(void)
mi = mallinfo();
- rprintf(FINFO, "\n" RSYNC_NAME "[%d] (%s%s%s) heap statistics:\n",
+ rprintf(FCLIENT, "\n");
+ rprintf(FINFO, RSYNC_NAME "[%d] (%s%s%s) heap statistics:\n",
getpid(), am_server ? "server " : "",
am_daemon ? "daemon " : "", who_am_i());
rprintf(FINFO, " arena: %10ld (bytes from sbrk)\n",
@@ -410,8 +413,8 @@ static pid_t do_cmd(char *cmd, char *machine, char *user, char *path,
if (verbose > 3) {
for (i = 0; i < argc; i++)
- rprintf(FINFO, "cmd[%d]=%s ", i, args[i]);
- rprintf(FINFO, "\n");
+ rprintf(FCLIENT, "cmd[%d]=%s ", i, args[i]);
+ rprintf(FCLIENT, "\n");
}
if (read_batch) {