diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-12 20:32:20 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-12 20:32:20 +0300 |
commit | 48afadfe7c617991cefc289e0200bfbbadecdbb9 (patch) | |
tree | 5c0064435670bff201c670b205f539fcc27407df /src/nxt_log.h | |
parent | 7d3fd1c96ca91a311b21cbaefc947f430f2130b9 (diff) | |
download | unit-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.h | 16 |
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__) |