Memory pool debug enabled with NXT_DEBUG_ALLOC define.

This commit is contained in:
Max Romanov
2017-07-12 20:32:20 +03:00
parent 7d3fd1c96c
commit 48afadfe7c
2 changed files with 82 additions and 28 deletions

View File

@@ -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__)