Add diagnostic about cache check - dedup - deduplicating backup program
 (HTM) git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit de5d80e928daf2f67a8151796a5f9ca4ac4663e2
 (DIR) parent 4d6d7d91c1672bd867c6dc1242e2dd2258698df9
 (HTM) Author: sin <sin@2f30.org>
       Date:   Tue,  5 Mar 2019 11:21:36 +0000
       
       Add diagnostic about cache check
       
       Diffstat:
         M dedup.c                             |       6 ++++++
       
       1 file changed, 6 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/dedup.c b/dedup.c
       @@ -515,6 +515,9 @@ check_cache(void)
        {
                int ret;
        
       +        if (verbose > 0)
       +                fprintf(stderr, "Checking cache\n");
       +
                if (cache_nr_entries() != snap_hdr.st.nr_blks) {
                        ret = -1;
                } else {
       @@ -524,6 +527,9 @@ check_cache(void)
                }
        
                if (ret != 0) {
       +                if (verbose > 0)
       +                        fprintf(stderr, "Rebuilding cache\n");
       +
                        free_cache(cache);
                        cache = alloc_cache();