Kernel: Add reason to reported stop error.

This commit is contained in:
Unknown W. Brackets 2022-10-15 21:38:08 -07:00
parent 1b5e5e2556
commit 770fdbeece

View file

@ -1644,7 +1644,7 @@ void __KernelStopThread(SceUID threadID, int exitStatus, const char *reason)
t->nt.waitType = WAITTYPE_NONE;
t->nt.waitID = 0;
} else {
ERROR_LOG_REPORT(SCEKERNEL, "__KernelStopThread: thread %d does not exist", threadID);
ERROR_LOG_REPORT(SCEKERNEL, "__KernelStopThread: thread %d does not exist (%s)", threadID, reason ? reason : "?");
}
}