]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/log.h
tree-wide: add DEBUG_LOGGING macro that checks whether debug logging is on (#7645)
[thirdparty/systemd.git] / src / basic / log.h
index aa5976c3c040e66d7694b52b3f42e1bc6bbaa76a..28300312f628586f2a520ee6befdd6fa9c2d3d65 100644 (file)
@@ -335,3 +335,5 @@ int log_syntax_internal(
                                             "String is not UTF-8 clean, ignoring assignment: %s", strna(_p)); \
                 }                                                       \
         })
+
+#define DEBUG_LOGGING _unlikely_(log_get_max_level() >= LOG_DEBUG)