diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-15 11:09:00 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-15 11:09:00 +0100 |
commit | f1d34068ef8d657238235d04ea291ee1ca095129 (patch) | |
tree | 18d734892f170e299b74734ec2005831522916ed /src/analyze/analyze-verify.c | |
parent | 42521cd1ed053ce13260cc0c942c33ff79e7a5ae (diff) | |
download | systemd-f1d34068ef8d657238235d04ea291ee1ca095129.tar.gz |
tree-wide: add DEBUG_LOGGING macro that checks whether debug logging is on (#7645)
This makes things a bit easier to read I think, and also makes sure we
always use the _unlikely_ wrapper around it, which so far we used
sometimes and other times we didn't. Let's clean that up.
Diffstat (limited to 'src/analyze/analyze-verify.c')
-rw-r--r-- | src/analyze/analyze-verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze-verify.c b/src/analyze/analyze-verify.c index 461e7852ac..f475b6598c 100644 --- a/src/analyze/analyze-verify.c +++ b/src/analyze/analyze-verify.c @@ -220,7 +220,7 @@ static int verify_unit(Unit *u, bool check_man) { assert(u); - if (log_get_max_level() >= LOG_DEBUG) + if (DEBUG_LOGGING) unit_dump(u, stdout, "\t"); log_unit_debug(u, "Creating %s/start job", u->id); |