dedup

deduplicating backup program
git clone git://git.2f30.org/dedup
Log | Files | Refs | README | LICENSE

commit e9c0d478cc17e6553c104b1db2b2e6c55c369938
parent b32ea21f3ef521f3f1dd9d908e499df4c83b895a
Author: sin <sin@2f30.org>
Date:   Wed, 21 Mar 2018 17:59:57 +0000

Fix format string

Diffstat:
Mdedup.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dedup.c b/dedup.c @@ -77,15 +77,15 @@ dump_ent(struct ent *ent) { uint64_t i; - fprintf(stderr, "ent->sz: %lld\n", (unsigned long long)ent->sz); + fprintf(stderr, "ent->sz: %llu\n", (unsigned long long)ent->sz); fprintf(stderr, "ent->md: "); dump_md(ent->md, sizeof(ent->md)); fputc('\n', stderr); if (verbose) { - fprintf(stderr, "ent->nblks: %lld\n", + fprintf(stderr, "ent->nblks: %llu\n", (unsigned long long)ent->nblks); for (i = 0; i < ent->nblks; i++) - fprintf(stderr, "ent->blks[%lld]: %lld\n", + fprintf(stderr, "ent->blks[%llu]: %llu\n", (unsigned long long)i, (unsigned long long)ent->blks[i]); } @@ -97,7 +97,7 @@ dump_blk(struct blk *blk) fprintf(stderr, "blk->md: "); dump_md(blk->md, sizeof(blk->md)); putchar('\n'); - fprintf(stderr, "blk->sz: %lld\n", (unsigned long long)blk->sz); + fprintf(stderr, "blk->sz: %llu\n", (unsigned long long)blk->sz); } void @@ -438,7 +438,7 @@ list(void) for (i = 0; i < sizeof(ent.md); i++) printf("%02x", ent.md[i]); if (verbose) - printf(" %lld", ent.nblks * BLKSIZ); + printf(" %llu", ent.nblks * BLKSIZ); putchar('\n'); lseek(ifd, ent.nblks * sizeof(ent.blks[0]), SEEK_CUR); }