Changed human_num() to big_num() with an extra arg so that it can
[rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index e0cad79888c4e69f147a10acf904d13fd862a2f1..2cf72b1ed0623823ddf546d2e045085599ff9f95 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) {
-               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);
        }
 }