diff options
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__) |