Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed human_num() to big_num() with an extra arg so that it can
[rsync/rsync.git]
/
flist.c
diff --git
a/flist.c
b/flist.c
index
e0cad79
..
2cf72b1
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-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) {
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(),
who_am_i(),
-
(double)sizeof flist->files[0] * flist->malloced
,
+
big_num(sizeof flist->files[0] * flist->malloced, 0)
,
(new_ptr == flist->files) ? " not" : "");
}
(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,
} 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,
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);
}
}
uidbuf, gidbuf, file->flags);
}
}