Add debug log for SVC CancelSynchronization

This SVC was missing a log which makes it harder to trace issues to it, it has been added to assist with future debugging.
This commit is contained in:
PixelyIon 2023-02-05 18:07:11 +05:30
parent 0cc2eede22
commit 2cdff40bcb

View File

@ -727,6 +727,7 @@ namespace skyline::kernel::svc {
try {
std::unique_lock lock(type::KSyncObject::syncObjectMutex);
auto thread{state.process->GetHandle<type::KThread>(state.ctx->gpr.w0)};
Logger::Debug("Cancelling Synchronization {}", thread->id);
thread->cancelSync = true;
if (thread->isCancellable) {
thread->isCancellable = false;