Remove some debug code - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 41722ed34fe2e6aa8442410a91cbdd231e56b00a DIR parent ec64133a5a57e21b3565368df37eae469c260755 HTML Author: sin <sin@2f30.org> Date: Thu, 28 Feb 2019 13:11:06 +0000 Remove some debug code Diffstat: M dedup.h | 14 +++++++------- M types.c | 14 -------------- 2 files changed, 7 insertions(+), 21 deletions(-) --- DIR diff --git a/dedup.h b/dedup.h @@ -22,6 +22,13 @@ struct cache; struct chunker; +struct snapshot_hdr { + uint64_t flags; + uint64_t size; + uint64_t nr_snapshots; + uint64_t reserved[4]; +}; + struct stats { uint64_t orig_size; uint64_t comp_size; @@ -32,13 +39,6 @@ struct stats { uint64_t reserved[6]; }; -struct snapshot_hdr { - uint64_t flags; - uint64_t size; - uint64_t nr_snapshots; - uint64_t reserved[4]; -}; - struct blk_hdr { uint64_t flags; uint64_t size; DIR diff --git a/types.c b/types.c @@ -26,13 +26,6 @@ read_snap_hdr(int fd, struct snapshot_hdr *hdr) &hdr->reserved[2], &hdr->reserved[3]); - if (verbose > 1) - printf("%s: flags = %llx, size = %llx, nr_snapshots = %llx\n", - __func__, - (unsigned long long)hdr->flags, - (unsigned long long)hdr->size, - (unsigned long long)hdr->nr_snapshots); - assert(n == SNAP_HDR_LEN); } @@ -53,13 +46,6 @@ write_snap_hdr(int fd, struct snapshot_hdr *hdr) hdr->reserved[2], hdr->reserved[3]); - if (verbose > 1) - printf("%s: flags = %llx, size = %llx, nr_snapshots = %llx\n", - __func__, - (unsigned long long)hdr->flags, - (unsigned long long)hdr->size, - (unsigned long long)hdr->nr_snapshots); - assert(n == SNAP_HDR_LEN); xwrite(fd, buf, n); }