if (sum->count && DEBUG_GTE(CHKSUM, 2)) {
rprintf(FINFO,
- "count=%.0f rem=%ld blength=%ld s2length=%d flength=%.0f\n",
- (double)sum->count, (long)sum->remainder, (long)sum->blength,
- sum->s2length, (double)sum->flength);
+ "count=%s rem=%ld blength=%ld s2length=%d flength=%s\n",
+ big_num(sum->count, 0), (long)sum->remainder, (long)sum->blength,
+ sum->s2length, big_num(sum->flength, 0));
}
}
if (DEBUG_GTE(CHKSUM, 3)) {
rprintf(FINFO,
- "chunk[%.0f] offset=%.0f len=%ld sum1=%08lx\n",
- (double)i, (double)offset - n1, (long)n1,
+ "chunk[%s] offset=%s len=%ld sum1=%08lx\n",
+ big_num(i, 0), big_num(offset - n1, 0), (long)n1,
(unsigned long)sum1);
}
write_int(f_out, sum1);
static void list_file_entry(struct file_struct *f)
{
char permbuf[PERMSTRING_SIZE];
- double len;
+ int64 len;
if (!F_IS_ACTIVE(f)) {
/* this can happen if duplicate names were removed */
#ifdef SUPPORT_LINKS
if (preserve_links && S_ISLNK(f->mode)) {
- rprintf(FINFO, "%s %11.0f %s %s -> %s\n",
- permbuf, len, timestring(f->modtime),
+ rprintf(FINFO, "%s %11s %s %s -> %s\n",
+ permbuf, big_num(len, 0), timestring(f->modtime),
f_name(f, NULL), F_SYMLINK(f));
} else
#endif
{
- rprintf(FINFO, "%s %11.0f %s %s\n",
- permbuf, len, timestring(f->modtime),
+ rprintf(FINFO, "%s %11s %s %s\n",
+ permbuf, big_num(len, 0), timestring(f->modtime),
f_name(f, NULL));
}
}
}
if (DEBUG_GTE(CHKSUM, 3)) {
- rprintf(FINFO, "gen mapped %s of size %.0f\n",
- fnamecmp, (double)sx.st.st_size);
+ rprintf(FINFO, "gen mapped %s of size %s\n",
+ fnamecmp, big_num(sx.st.st_size, 0));
}
if (DEBUG_GTE(CHKSUM, 2))