Fix compilation warnings in pack-redundant.c
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>
This commit is contained in:
parent
ac0b86dadf
commit
abacbe4166
@ -593,19 +593,20 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
minimize(&min);
|
minimize(&min);
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
fprintf(stderr, "There are %ld packs available in alt-odbs.\n",
|
fprintf(stderr, "There are %lu packs available in alt-odbs.\n",
|
||||||
pack_list_size(altodb_packs));
|
(unsigned long)pack_list_size(altodb_packs));
|
||||||
fprintf(stderr, "The smallest (bytewise) set of packs is:\n");
|
fprintf(stderr, "The smallest (bytewise) set of packs is:\n");
|
||||||
pl = min;
|
pl = min;
|
||||||
while (pl) {
|
while (pl) {
|
||||||
fprintf(stderr, "\t%s\n", pl->pack->pack_name);
|
fprintf(stderr, "\t%s\n", pl->pack->pack_name);
|
||||||
pl = pl->next;
|
pl = pl->next;
|
||||||
}
|
}
|
||||||
fprintf(stderr, "containing %ld duplicate objects "
|
fprintf(stderr, "containing %lu duplicate objects "
|
||||||
"with a total size of %ldkb.\n",
|
"with a total size of %lukb.\n",
|
||||||
get_pack_redundancy(min), pack_set_bytecount(min)/1024);
|
(unsigned long)get_pack_redundancy(min),
|
||||||
fprintf(stderr, "A total of %ld unique objects were considered.\n",
|
(unsigned long)pack_set_bytecount(min)/1024);
|
||||||
all_objects->size);
|
fprintf(stderr, "A total of %lu unique objects were considered.\n",
|
||||||
|
(unsigned long)all_objects->size);
|
||||||
fprintf(stderr, "Redundant packs (with indexes):\n");
|
fprintf(stderr, "Redundant packs (with indexes):\n");
|
||||||
}
|
}
|
||||||
pl = red = pack_list_difference(local_packs, min);
|
pl = red = pack_list_difference(local_packs, min);
|
||||||
|
Loading…
Reference in New Issue
Block a user