summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_log.h
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-06-02 16:51:49 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-06-02 16:51:49 +0400
commitd9fddee1dbfc1f5d49c8f40386289d7188030952 (patch)
tree842a62b343ac33eba10e7a426a10b55bb1c46aed /src/nxt_log.h
parent420395ee2e7cd464e157c49bea3d74f15bf25f30 (diff)
parent0d48fe73c4450901622373e35f6ff3a944ec13d6 (diff)
downloadunit-1.27.0-1.tar.gz
unit-1.27.0-1.tar.bz2
Merged with the default branch.1.27.0-1
Diffstat (limited to 'src/nxt_log.h')
-rw-r--r--src/nxt_log.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/nxt_log.h b/src/nxt_log.h
index 0cf10b5c..aa2fe673 100644
--- a/src/nxt_log.h
+++ b/src/nxt_log.h
@@ -41,8 +41,7 @@ NXT_EXPORT void nxt_cdecl nxt_log_handler(nxt_uint_t level, nxt_log_t *log,
const char *fmt, ...);
-#define \
-nxt_log_level_enough(log, level) \
+#define nxt_log_level_enough(log, level) \
((log)->level >= (level))
@@ -83,8 +82,7 @@ nxt_log_level_enough(log, level) \
} while (0)
-#define \
-nxt_log_error(_level, _log, ...) \
+#define nxt_log_error(_level, _log, ...) \
do { \
nxt_log_t *_log_ = (_log); \
nxt_uint_t _level_ = (_level); \
@@ -107,8 +105,7 @@ nxt_log_error(_level, _log, ...) \
} while (0)
-#define \
-nxt_log_debug(_log, ...) \
+#define nxt_log_debug(_log, ...) \
do { \
nxt_log_t *_log_ = (_log); \
\
@@ -131,8 +128,7 @@ nxt_log_debug(_log, ...) \
#define nxt_debug(...)
-#define \
-nxt_log_debug(...)
+#define nxt_log_debug(...)
#define nxt_assert(c)
@@ -151,18 +147,15 @@ nxt_log_debug(...)
#endif
-#define \
-nxt_main_log_alert(...) \
+#define nxt_main_log_alert(...) \
nxt_log_alert(&nxt_main_log, __VA_ARGS__)
-#define \
-nxt_main_log_error(level, ...) \
+#define nxt_main_log_error(level, ...) \
nxt_log_error(level, &nxt_main_log, __VA_ARGS__)
-#define \
-nxt_main_log_debug(...) \
+#define nxt_main_log_debug(...) \
nxt_log_debug(&nxt_main_log, __VA_ARGS__)