aboutsummaryrefslogtreecommitdiffstats
path: root/generator.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-06-01 08:04:40 +0000
committerWayne Davison <wayned@samba.org>2006-06-01 08:04:40 +0000
commit1925c3448cc67ad17ac66ef809b275a3a3034c02 (patch)
tree13da3946c532aedf76652c04bbc552017d2e1e1d /generator.c
parent19b8587654616db0b1a90de7d596ccafd882df19 (diff)
downloadandroid_external_rsync-1925c3448cc67ad17ac66ef809b275a3a3034c02.tar.gz
android_external_rsync-1925c3448cc67ad17ac66ef809b275a3a3034c02.tar.bz2
android_external_rsync-1925c3448cc67ad17ac66ef809b275a3a3034c02.zip
- Got rid of the FNAME logcode enum.
- We no longer output " is uptodate" messages to the log file.
Diffstat (limited to 'generator.c')
-rw-r--r--generator.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generator.c b/generator.c
index 97f4ac77..3a8d5eb9 100644
--- a/generator.c
+++ b/generator.c
@@ -367,8 +367,10 @@ void itemize(struct file_struct *file, int ndx, int statret, STRUCT_STAT *st,
write_byte(sock_f_out, fnamecmp_type);
if (iflags & ITEM_XNAME_FOLLOWS)
write_vstring(sock_f_out, xname, strlen(xname));
- } else if (ndx >= 0)
- log_item(FINFO, file, &stats, iflags, xname);
+ } else if (ndx >= 0) {
+ enum logcode code = logfile_format_has_i ? FINFO : FCLIENT;
+ log_item(code, file, &stats, iflags, xname);
+ }
}
}
@@ -670,8 +672,7 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx,
if (itemizing)
itemize(file, ndx, 0, stp, 0, 0, NULL);
if (verbose > 1 && maybe_ATTRS_REPORT) {
- code = logfile_format_has_i || dry_run ? FNAME : FINFO;
- rprintf(code, "%s is uptodate\n", fname);
+ rprintf(FCLIENT, "%s is uptodate\n", fname);
}
return -2;
}
@@ -691,7 +692,7 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx,
if (maybe_ATTRS_REPORT
&& ((!itemizing && verbose && match_level == 2)
|| (verbose > 1 && match_level == 3))) {
- code = logfile_format_has_i || dry_run ? FNAME : FINFO;
+ code = match_level == 3 ? FCLIENT : FINFO;
rprintf(code, "%s%s\n", fname,
match_level == 3 ? " is uptodate" : "");
}
@@ -766,8 +767,7 @@ static int try_dests_non(struct file_struct *file, char *fname, int ndx,
itemize(file, ndx, 0, &st, changes, 0, lp);
}
if (verbose > 1 && maybe_ATTRS_REPORT) {
- code = logfile_format_has_i || dry_run ? FNAME : FINFO;
- rprintf(code, "%s is uptodate\n", fname);
+ rprintf(FCLIENT, "%s is uptodate\n", fname);
}
return -2;
} while (basis_dir[++i] != NULL);