summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-15 11:09:00 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-12-15 11:09:00 +0100
commitf1d34068ef8d657238235d04ea291ee1ca095129 (patch)
tree18d734892f170e299b74734ec2005831522916ed /src/shared/logs-show.c
parent42521cd1ed053ce13260cc0c942c33ff79e7a5ae (diff)
downloadsystemd-f1d34068ef8d657238235d04ea291ee1ca095129.tar.gz
systemd-f1d34068ef8d657238235d04ea291ee1ca095129.tar.bz2
systemd-f1d34068ef8d657238235d04ea291ee1ca095129.zip
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/shared/logs-show.c')
-rw-r--r--src/shared/logs-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index afc3dcd219..af7f8f345e 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -1392,7 +1392,7 @@ int show_journal_by_unit(
if (r < 0)
return log_error_errno(r, "Failed to add unit matches: %m");
- if (_unlikely_(log_get_max_level() >= LOG_DEBUG)) {
+ if (DEBUG_LOGGING) {
_cleanup_free_ char *filter;
filter = journal_make_match_string(j);