aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/resource_limit.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-02 02:51:50 -0400
committerGitHub <noreply@github.com>2020-05-02 02:51:50 -0400
commit5ddcc1b2f582b10ac52ba9d329bfb4e49360c738 (patch)
treefcfa54f0c46919bbe940fa6ce8f9a0bfc304cef8 /src/core/hle/kernel/resource_limit.cpp
parentf4ca8e0d3e4778f693378b17e8cea76996d400e4 (diff)
parentb6538c3e7c4de8dbaf6db50a54e10f5e5cb52813 (diff)
Merge pull request #3819 from ogniK5377/err-log2
kernel: Don't fail silently
Diffstat (limited to 'src/core/hle/kernel/resource_limit.cpp')
-rw-r--r--src/core/hle/kernel/resource_limit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/resource_limit.cpp b/src/core/hle/kernel/resource_limit.cpp
index 96e5b9892..d9beaa3a4 100644
--- a/src/core/hle/kernel/resource_limit.cpp
+++ b/src/core/hle/kernel/resource_limit.cpp
@@ -69,6 +69,8 @@ ResultCode ResourceLimit::SetLimitValue(ResourceType resource, s64 value) {
limit[index] = value;
return RESULT_SUCCESS;
} else {
+ LOG_ERROR(Kernel, "Limit value is too large! resource={}, value={}, index={}",
+ static_cast<u32>(resource), value, index);
return ERR_INVALID_STATE;
}
}