diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2021-07-13 13:05:40 +0200 |
---|---|---|
committer | Tomas Krizek <tomas.krizek@nic.cz> | 2021-07-29 11:42:34 +0200 |
commit | 0e73960bb302f2b1c467c22375584fb85344483b (patch) | |
tree | b04028fafa4cd62f8628066e4836a90aa6130fa1 /utils | |
parent | validate: add kr_rrset_validation_ctx_t::log_qry (diff) | |
download | knot-resolver-0e73960bb302f2b1c467c22375584fb85344483b.tar.xz knot-resolver-0e73960bb302f2b1c467c22375584fb85344483b.zip |
treewide: replace VERBOSE_STATUS, WITH_VERBOSE, etc.
The main problem there was ignoring the log groups,
and VERBOSE_STATUS also ignores trace-logging.
Typically the new kr_log_is_debug*() are the best choice.
In a couple places with heavy WITH_VERBOSE usage it's
instead locally redefined to consider the right group.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/cache_gc/db.h | 4 |
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 */ + |