From 4492c0084035ed1e9cfb954dcad730a31e85d5ab Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 22 Jul 2025 17:31:44 +0200 Subject: [PATCH] move prints to ZDEBUG2 as it seems to be for this purpose --- src/z_zone.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/z_zone.c b/src/z_zone.c index ad756ceaa..bd97707c7 100644 --- a/src/z_zone.c +++ b/src/z_zone.c @@ -149,9 +149,12 @@ void Z_Free(void *ptr) #endif #endif -#ifdef ZDEBUG +#ifdef ZDEBUG2 // Write every Z_Free call to a debug file. CONS_Debug(DBG_MEMORY, "Z_Free at %s:%d\n", file, line); +#elif defined(ZDEBUG) + (void)file; + (void)line; #endif // anything that isn't by lua gets passed to lua just in case. @@ -358,8 +361,10 @@ void *Z_ReallocAlign(void *ptr, size_t size, INT32 tag, void *user, INT32 alignb return NULL; #ifdef ZDEBUG +#ifdef ZDEBUG2 // Write every Z_Realloc call to a debug file. DEBFILE(va("Z_Realloc at %s:%d\n", file, line)); +#endif rez = Z_Malloc2(size, tag, user, alignbits, file, line); #else rez = Z_MallocAlign(size, tag, user, alignbits);