summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-31 03:27:30 +0100
committerLioncash <mathew1800@gmail.com>2018-12-31 03:29:38 +0100
commitb4242633ad542f1f442e825c7ad426f05d703e40 (patch)
tree2af2a13b9fd5c91bbb2d53119893a377d7e2b3d0 /src/core
parentkernel/svc: Sanitize core number and thread priorities in CreateThread() (diff)
downloadyuzu-b4242633ad542f1f442e825c7ad426f05d703e40.tar
yuzu-b4242633ad542f1f442e825c7ad426f05d703e40.tar.gz
yuzu-b4242633ad542f1f442e825c7ad426f05d703e40.tar.bz2
yuzu-b4242633ad542f1f442e825c7ad426f05d703e40.tar.lz
yuzu-b4242633ad542f1f442e825c7ad426f05d703e40.tar.xz
yuzu-b4242633ad542f1f442e825c7ad426f05d703e40.tar.zst
yuzu-b4242633ad542f1f442e825c7ad426f05d703e40.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/svc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index ada05abd2..6588bd3b8 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -1239,8 +1239,9 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
}
if (priority > THREADPRIO_LOWEST) {
- LOG_ERROR(Kernel_SVC, "An invalid priority was specified, expected {} but got {}",
- THREADPRIO_LOWEST, priority);
+ LOG_ERROR(Kernel_SVC,
+ "Invalid thread priority specified ({}). Must be within the range 0-64",
+ priority);
return ERR_INVALID_THREAD_PRIORITY;
}