From: John Hodge Date: Wed, 14 Mar 2012 06:07:34 +0000 (+0800) Subject: Kernel/messages - Fix compile error in debug X-Git-Tag: rel0.15~730 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=22da3a43e0ef78edafb8b3e36e8062bbeb62f18e;p=tpg%2Facess2.git Kernel/messages - Fix compile error in debug --- diff --git a/KernelLand/Kernel/messages.c b/KernelLand/Kernel/messages.c index afdcdbde..09c8c14e 100644 --- a/KernelLand/Kernel/messages.c +++ b/KernelLand/Kernel/messages.c @@ -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 );