summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/cache_gc/db.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/cache_gc/db.h b/utils/cache_gc/db.h
index 48dc101a..7865471b 100644
--- a/utils/cache_gc/db.h
+++ b/utils/cache_gc/db.h
@@ -31,3 +31,7 @@ int kr_gc_key_consistent(knot_db_val_t key);
/** Printf a *binary* string in a human-readable way. */
void debug_printbin(const char *str, unsigned int len);
+/** Block run in --verbose mode; optimized when not run. */
+#define VERBOSE_STATUS __builtin_expect(KR_LOG_LEVEL_IS(LOG_DEBUG), false)
+/* TODO: replace when solving GC logging properly */
+