diff options
author | Wayne Davison <wayned@samba.org> | 2008-07-17 07:37:31 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-07-17 07:37:31 -0700 |
commit | 6d56efa6ea66afa2e6f4eb79d9dd5f3b54b723c3 (patch) | |
tree | 42baf860a22de3fe37b6536842189262ea9bd051 /flist.c | |
parent | 97dde6b6200aa0a3333e4f821e24dd5f0f91ec75 (diff) | |
download | rsync-6d56efa6ea66afa2e6f4eb79d9dd5f3b54b723c3.tar.gz |
Changed human_num() to big_num() with an extra arg so that it can
be used in place of all %.0f output idioms.
Diffstat (limited to 'flist.c')
-rw-r--r-- | flist.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -317,9 +317,9 @@ static void flist_expand(struct file_list *flist, int extra) flist->malloced); if (DEBUG_GTE(FLIST, 1) && flist->malloced != FLIST_START) { - rprintf(FCLIENT, "[%s] expand file_list pointer array to %.0f bytes, did%s move\n", + rprintf(FCLIENT, "[%s] expand file_list pointer array to %s bytes, did%s move\n", who_am_i(), - (double)sizeof flist->files[0] * flist->malloced, + big_num(sizeof flist->files[0] * flist->malloced, 0), (new_ptr == flist->files) ? " not" : ""); } @@ -2686,10 +2686,10 @@ static void output_flist(struct file_list *flist) } else root = dir = slash = name = trail = ""; rprintf(FINFO, - "[%s] i=%d %s %s%s%s%s mode=0%o len=%.0f%s%s flags=%x\n", + "[%s] i=%d %s %s%s%s%s mode=0%o len=%s%s%s flags=%x\n", who, i + flist->ndx_start, root, dir, slash, name, trail, - (int)file->mode, (double)F_LENGTH(file), + (int)file->mode, big_num(F_LENGTH(file), 0), uidbuf, gidbuf, file->flags); } } |