From: John Hodge Date: Sat, 4 Dec 2010 04:29:35 +0000 (+0800) Subject: Added thread pointer to thread dump X-Git-Tag: rel0.07~40 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d175ad3da84740882a4d99cdb4c00072cd1b13be;p=tpg%2Facess2.git Added thread pointer to thread dump --- diff --git a/Kernel/threads.c b/Kernel/threads.c index b76fe592..f81e25d6 100644 --- a/Kernel/threads.c +++ b/Kernel/threads.c @@ -836,8 +836,8 @@ void Threads_DumpActive(void) for(thread=gActiveThreads;thread;thread=thread->Next) #endif { - Log(" %i (%i) - %s (CPU %i)", - thread->TID, thread->TGID, thread->ThreadName, thread->CurCPU); + Log(" %p %i (%i) - %s (CPU %i)", + thread, thread->TID, thread->TGID, thread->ThreadName, thread->CurCPU); if(thread->Status != THREAD_STAT_ACTIVE) Log(" ERROR State (%i) != THREAD_STAT_ACTIVE (%i)", thread->Status, THREAD_STAT_ACTIVE); Log(" Priority %i, Quantum %i", thread->Priority, thread->Quantum); @@ -863,8 +863,8 @@ void Threads_Dump(void) Log("All Threads:"); for(thread=gAllThreads;thread;thread=thread->GlobalNext) { - Log(" %i (%i) - %s (CPU %i)", - thread->TID, thread->TGID, thread->ThreadName, thread->CurCPU); + Log(" %p %i (%i) - %s (CPU %i)", + thread, thread->TID, thread->TGID, thread->ThreadName, thread->CurCPU); Log(" State %i (%s)", thread->Status, casTHREAD_STAT[thread->Status]); switch(thread->Status) {