From 32cb76b56f6e2e27859d2c181f01cd1f39996a1f Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Fri, 29 May 2020 22:37:16 +0000 Subject: [PATCH] Fix incorrect variables in THREADDEBUG prints causing compile errors git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12606 d7cf8633-e32d-0410-b094-e92efae38249 --- thread_sdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thread_sdl.c b/thread_sdl.c index f805e540..5c77bb3c 100644 --- a/thread_sdl.c +++ b/thread_sdl.c @@ -171,7 +171,7 @@ void _Thread_WaitBarrier(void *barrier, const char *filename, int fileline) int _Thread_AtomicGet(Thread_Atomic *a, const char *filename, int fileline) { #ifdef THREADDEBUG - Sys_PrintfToTerminal("%p atomic get at %s:%i\n", a, v, filename, fileline); + Sys_PrintfToTerminal("%p atomic get at %s:%i\n", a, filename, fileline); #endif return SDL_AtomicGet((SDL_atomic_t *)a); } @@ -195,7 +195,7 @@ int _Thread_AtomicAdd(Thread_Atomic *a, int v, const char *filename, int filelin void _Thread_AtomicIncRef(Thread_Atomic *a, const char *filename, int fileline) { #ifdef THREADDEBUG - Sys_PrintfToTerminal("%p atomic incref %s:%i\n", lock, filename, fileline); + Sys_PrintfToTerminal("%p atomic incref %s:%i\n", a, filename, fileline); #endif SDL_AtomicIncRef((SDL_atomic_t *)a); } @@ -203,7 +203,7 @@ void _Thread_AtomicIncRef(Thread_Atomic *a, const char *filename, int fileline) qboolean _Thread_AtomicDecRef(Thread_Atomic *a, const char *filename, int fileline) { #ifdef THREADDEBUG - Sys_PrintfToTerminal("%p atomic decref %s:%i\n", lock, filename, fileline); + Sys_PrintfToTerminal("%p atomic decref %s:%i\n", a, filename, fileline); #endif return SDL_AtomicDecRef((SDL_atomic_t *)a) != SDL_FALSE; } -- 2.39.2