From: cloudwalk Date: Fri, 29 May 2020 22:37:16 +0000 (+0000) Subject: Fix incorrect variables in THREADDEBUG prints causing compile errors X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=32cb76b56f6e2e27859d2c181f01cd1f39996a1f;p=xonotic%2Fdarkplaces.git 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 --- 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; }