]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
tree-wide: add DEBUG_LOGGING macro that checks whether debug logging is on (#7645)
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 10:09:00 +0000 (11:09 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Dec 2017 10:09:00 +0000 (11:09 +0100)
commitf1d34068ef8d657238235d04ea291ee1ca095129
tree18d734892f170e299b74734ec2005831522916ed
parent42521cd1ed053ce13260cc0c942c33ff79e7a5ae
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.
13 files changed:
coccinelle/debug-logging.cocci [new file with mode: 0644]
src/analyze/analyze-verify.c
src/basic/log.h
src/core/execute.c
src/core/manager.c
src/core/service.c
src/coredump/coredumpctl.c
src/journal-remote/journal-upload.c
src/journal/journalctl.c
src/resolve/resolved-dns-cache.c
src/resolve/resolved-manager.c
src/shared/logs-show.c
src/shared/seccomp-util.c