kernel: Don't fail silently

This commit is contained in:
David Marcec
2020-04-29 14:53:53 +10:00
parent 8e64fb3225
commit b6538c3e7c
7 changed files with 51 additions and 0 deletions

View File

@ -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;
}
}