From: James Hilliard Date: Wed, 4 May 2022 22:45:14 +0000 (-0600) Subject: test/zck_cmp_uncomp: fix printf format types X-Git-Tag: archive/raspbian/1.2.3+ds1-2+rpi1^2~8^2^2~6^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6588b0cacee20edf01585e15d5e43fc66e25d1ab;p=zchunk.git test/zck_cmp_uncomp: fix printf format types Signed-off-by: James Hilliard --- diff --git a/test/zck_cmp_uncomp.c b/test/zck_cmp_uncomp.c index bdf9205..9713492 100644 --- a/test/zck_cmp_uncomp.c +++ b/test/zck_cmp_uncomp.c @@ -216,7 +216,7 @@ int main (int argc, char *argv[]) { size_t todwl = 0; size_t reuse = 0; while (iter) { - printf("%12lu %s %s %12lu %12lu\n", + printf("%zd %s %s %zd %zd\n", zck_get_chunk_number(iter), zck_get_chunk_valid(iter) ? "SRC" : "DST", zck_get_chunk_digest_uncompressed(iter), @@ -232,8 +232,8 @@ int main (int argc, char *argv[]) { iter = zck_get_next_chunk(iter); } - printf("\n\nTotal to be reused : %12lu\n", reuse); - printf("Total to be downloaded : %12lu\n", todwl); + printf("\n\nTotal to be reused : %zu\n", reuse); + printf("Total to be downloaded : %zu\n", todwl); close(in_fd); close(zck_fd);