Kernel - (minor) Changed log type for GetThreadByID failure
authorJohn Hodge <[email protected]>
Tue, 31 Jul 2012 11:48:34 +0000 (19:48 +0800)
committerJohn Hodge <[email protected]>
Tue, 31 Jul 2012 11:48:34 +0000 (19:48 +0800)
KernelLand/Kernel/threads.c

index 6099621..17cccca 100644 (file)
@@ -504,15 +504,13 @@ tThread *Threads_GetThread(Uint TID)
        tThread *thread;
        
        // Search global list
-       for(thread = gAllThreads;
-               thread;
-               thread = thread->GlobalNext)
+       for( thread = gAllThreads; thread; thread = thread->GlobalNext )
        {
                if(thread->TID == TID)
                        return thread;
        }
 
-       Log("Unable to find TID %i on main list\n", TID);
+       Log_Notice("Threads", "Unable to find TID %i on main list\n", TID);
        
        return NULL;
 }

UCC git Repository :: git.ucc.asn.au