summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_log.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-12 20:32:20 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-12 20:32:20 +0300
commit48afadfe7c617991cefc289e0200bfbbadecdbb9 (patch)
tree5c0064435670bff201c670b205f539fcc27407df /src/nxt_log.h
parent7d3fd1c96ca91a311b21cbaefc947f430f2130b9 (diff)
downloadunit-48afadfe7c617991cefc289e0200bfbbadecdbb9.tar.gz
unit-48afadfe7c617991cefc289e0200bfbbadecdbb9.tar.bz2
Memory pool debug enabled with NXT_DEBUG_ALLOC define.
Diffstat (limited to 'src/nxt_log.h')
-rw-r--r--src/nxt_log.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/nxt_log.h b/src/nxt_log.h
index 504d2ee8..e32feb14 100644
--- a/src/nxt_log.h
+++ b/src/nxt_log.h
@@ -122,13 +122,9 @@ nxt_log_debug(_log, ...) \
} while (0)
-#define nxt_debug_alloc(_fmt, ARGS...) \
- nxt_thread_log_debug("%08p: " _fmt, mp, ##ARGS)
-
#else
#define nxt_debug(...)
-#define nxt_debug_alloc(...)
#define \
nxt_log_debug(...)
@@ -136,6 +132,18 @@ nxt_log_debug(...)
#endif
+#if (NXT_DEBUG_ALLOC)
+
+#define nxt_debug_alloc(...) \
+ nxt_thread_log_debug(__VA_ARGS__)
+
+#else
+
+#define nxt_debug_alloc(...)
+
+#endif
+
+
#define \
nxt_main_log_emerg(...) \
nxt_log_emerg(&nxt_main_log, __VA_ARGS__)