From: Vladimír Čunát Date: Thu, 27 Jun 2019 13:51:49 +0000 (+0200) Subject: gc: clean warnings with -DDEBUG X-Git-Tag: v4.1.0~8^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de001a55cc7a49cc3b7b3873d45cad3c4c1a1f62;p=thirdparty%2Fknot-resolver.git gc: clean warnings with -DDEBUG --- diff --git a/utils/cache_gc/db.c b/utils/cache_gc/db.c index 0c8f8ddba..57262df3d 100644 --- a/utils/cache_gc/db.c +++ b/utils/cache_gc/db.c @@ -5,6 +5,7 @@ #include //#include +#include //DEBUG #include #include @@ -202,7 +203,7 @@ int kr_gc_cache_iter(knot_db_t *knot_db, kr_gc_iter_callback callback, void *ctx } #ifdef DEBUG counter_kr_consistent += info.valid; - printf("GC %sconsistent, KR %sconsistent, size %u, key len %u: ", + printf("GC %sconsistent, KR %sconsistent, size %zu, key len %zu: ", entry_type ? "" : "in", entry ? "" : "IN", (key.len + val.len), key.len); debug_printbin(key.data, key.len); printf("\n");