summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-12 10:27:35 +0200
committerLioncash <mathew1800@gmail.com>2018-09-12 11:20:02 +0200
commitfbe462099bf626547abbf879514f4976e776ebde (patch)
treea9dcc9f32e85a8312249b3f0a6517029aa3f0519 /src/core
parentkernel/errors: Correct error codes for invalid thread priority and invalid processor ID (diff)
downloadyuzu-fbe462099bf626547abbf879514f4976e776ebde.tar
yuzu-fbe462099bf626547abbf879514f4976e776ebde.tar.gz
yuzu-fbe462099bf626547abbf879514f4976e776ebde.tar.bz2
yuzu-fbe462099bf626547abbf879514f4976e776ebde.tar.lz
yuzu-fbe462099bf626547abbf879514f4976e776ebde.tar.xz
yuzu-fbe462099bf626547abbf879514f4976e776ebde.tar.zst
yuzu-fbe462099bf626547abbf879514f4976e776ebde.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/svc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 1325c2e62..f1be402cb 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -544,8 +544,8 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
case THREADPROCESSORID_3:
break;
default:
- ASSERT_MSG(false, "Unsupported thread processor ID: {}", processor_id);
- break;
+ LOG_ERROR(Kernel_SVC, "Invalid thread processor ID: {}", processor_id);
+ return ERR_INVALID_PROCESSOR_ID;
}
auto& kernel = Core::System::GetInstance().Kernel();