]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix incorrect variables in THREADDEBUG prints causing compile errors
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 May 2020 22:37:16 +0000 (22:37 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 May 2020 22:37:16 +0000 (22:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12606 d7cf8633-e32d-0410-b094-e92efae38249

thread_sdl.c

index f805e5403eae4f0ba27dd011d49d67231e5cc070..5c77bb3c976241b2bf4c95974a1b94219eb3147d 100644 (file)
@@ -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;
 }