X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0f9c48b1d23fbe958544094e97ba8ad2a7d8b8f4..89855e78ab449a66d09b0b17e22dba0cfbcadef7:/sender.c diff --git a/sender.c b/sender.c index dbc0c0f0..a42042b8 100644 --- a/sender.c +++ b/sender.c @@ -37,9 +37,9 @@ extern int am_server; **/ -/* - receive the checksums for a buffer - */ +/** + * Receive the checksums for a buffer + **/ static struct sum_struct *receive_sums(int f) { struct sum_struct *s; @@ -55,8 +55,8 @@ static struct sum_struct *receive_sums(int f) s->sums = NULL; if (verbose > 3) - rprintf(FINFO,"count=%d n=%d rem=%d\n", - s->count,s->n,s->remainder); + rprintf(FINFO,"count=%ld n=%ld rem=%ld\n", + (long) s->count, (long) s->n, (long) s->remainder); if (s->count == 0) return(s); @@ -158,8 +158,8 @@ void send_files(struct file_list *flist,int f_out,int f_in) rprintf(FINFO,"send_files(%d,%s)\n",i,fname); if (dry_run) { - if (!am_server) { - log_transfer(file, fname+offset); + if (!am_server && verbose) { /* log transfer */ + rprintf(FINFO, "%s\n", fname+offset); } write_int(f_out,i); continue; @@ -220,8 +220,8 @@ void send_files(struct file_list *flist,int f_out,int f_in) if (!read_batch) rprintf(FINFO,"calling match_sums %s\n",fname); - if (!am_server) { - log_transfer(file, fname+offset); + if (!am_server && verbose) { /* log transfer */ + rprintf(FINFO, "%s\n", fname+offset); } set_compression(fname);