summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac0b86d)
raw | patch | inline | side by side (parent: ac0b86d)
author | Kai Ruemmler <kai.ruemmler@gmx.net> | |
Sat, 12 Nov 2005 16:33:24 +0000 (17:33 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 13 Nov 2005 10:00:36 +0000 (02:00 -0800) |
This fixes compilation warnings where "%ld" was used to print values of
type size_t.
Signed-off-by: Kai Ruemmler <kai.ruemmler@gmx.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
type size_t.
Signed-off-by: Kai Ruemmler <kai.ruemmler@gmx.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-redundant.c | patch | blob | history |
diff --git a/pack-redundant.c b/pack-redundant.c
index 1f8c5773911e2fa37e62564f2fc48bae1f61103a..28b82ee65aed94d2a738602679e0f7d55921ddb3 100644 (file)
--- a/pack-redundant.c
+++ b/pack-redundant.c
minimize(&min);
if (verbose) {
- fprintf(stderr, "There are %ld packs available in alt-odbs.\n",
- pack_list_size(altodb_packs));
+ fprintf(stderr, "There are %lu packs available in alt-odbs.\n",
+ (unsigned long)pack_list_size(altodb_packs));
fprintf(stderr, "The smallest (bytewise) set of packs is:\n");
pl = min;
while (pl) {
fprintf(stderr, "\t%s\n", pl->pack->pack_name);
pl = pl->next;
}
- fprintf(stderr, "containing %ld duplicate objects "
- "with a total size of %ldkb.\n",
- get_pack_redundancy(min), pack_set_bytecount(min)/1024);
- fprintf(stderr, "A total of %ld unique objects were considered.\n",
- all_objects->size);
+ fprintf(stderr, "containing %lu duplicate objects "
+ "with a total size of %lukb.\n",
+ (unsigned long)get_pack_redundancy(min),
+ (unsigned long)pack_set_bytecount(min)/1024);
+ fprintf(stderr, "A total of %lu unique objects were considered.\n",
+ (unsigned long)all_objects->size);
fprintf(stderr, "Redundant packs (with indexes):\n");
}
pl = red = pack_list_difference(local_packs, min);