scheduler: include thread id in exit log message.
Change-Id: Ied30fd9a226e3fa1701a7bf24f2dd2bd472e753c
diff --git a/sdk/core/scheduler/thread.h b/sdk/core/scheduler/thread.h
index e5b2961..c23423a 100644
--- a/sdk/core/scheduler/thread.h
+++ b/sdk/core/scheduler/thread.h
@@ -353,7 +353,7 @@
*/
static bool exit()
{
- Debug::log("Thread exited, {} threads remaining", threadCount - 1);
+ Debug::log("Thread {} exited, {} threads remaining", current->threadId, threadCount - 1);
current->list_remove(&priorityList[current->priority]);
current->state = ThreadState::Exited;
return (--threadCount) == 0;