Systemd/coccinelle/debug-logging.cocci
Lennart Poettering f1d34068ef 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.
2017-12-15 11:09:00 +01:00

9 lines
126 B
Plaintext

@@
@@
- _unlikely_(log_get_max_level() >= LOG_DEBUG)
+ DEBUG_LOGGING
@@
@@
- log_get_max_level() >= LOG_DEBUG
+ DEBUG_LOGGING