]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
gc: make the log more readable
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 28 Feb 2020 14:37:23 +0000 (15:37 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 28 Feb 2020 14:58:53 +0000 (15:58 +0100)
One iteration of GC produces five lines of log (without -DDEBUG);
separating those chunks seems much nicer.

utils/cache_gc/kr_cache_gc.c

index 8b8ecf5b957341c3a69f24460d332dcc47b3968b..6ba8aad684144c026e13c1ff690e29f83cc3e0e8 100644 (file)
@@ -319,7 +319,7 @@ finish:
        printf("Deleted %zu records (%zu already gone) types", deleted_records,
               already_gone);
        rrtypelist_print(&deleted_rrtypes);
-       printf("It took %.2lf secs, %zu transactions (%s)\n",
+       printf("It took %.2lf secs, %zu transactions (%s)\n\n",
               gc_timer_end(&timer_delete), rw_txn_count, knot_strerror(ret));
 
        rrtype_dynarray_free(&deleted_rrtypes);