Kernel/messages - Fix compile error in debug
authorJohn Hodge <[email protected]>
Wed, 14 Mar 2012 06:07:34 +0000 (14:07 +0800)
committerJohn Hodge <[email protected]>
Wed, 14 Mar 2012 06:07:34 +0000 (14:07 +0800)
KernelLand/Kernel/messages.c

index afdcdbd..09c8c14 100644 (file)
@@ -25,7 +25,7 @@ int Proc_SendMessage(Uint Dest, int Length, void *Data)
        tThread *thread;
        tMsg    *msg;
        
-       ENTER("pErr iDest iLength pData", Err, Dest, Length, Data);
+       ENTER("iDest iLength pData", Dest, Length, Data);
        
        if(Length <= 0 || !Data) {
                errno = -EINVAL;
@@ -37,9 +37,8 @@ int Proc_SendMessage(Uint Dest, int Length, void *Data)
 
        // Get thread
        thread = Threads_GetThread( Dest );
-       
-       // Error check
        if(!thread)     LEAVE_RET('i', -1);
+       LOG("Destination %p(%i %s)", thread, thread->TID, thread->ThreadName);
        
        // Get Spinlock
        SHORTLOCK( &thread->IsLocked );

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