summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/handle_table.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-04-29 06:53:53 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-04-29 06:53:53 +0200
commitb6538c3e7c4de8dbaf6db50a54e10f5e5cb52813 (patch)
tree20dbce57eddb9b4930fcc792badee679b9f961fe /src/core/hle/kernel/handle_table.cpp
parentMerge pull request #3771 from benru/dump-romfs-with-updates (diff)
downloadyuzu-b6538c3e7c4de8dbaf6db50a54e10f5e5cb52813.tar
yuzu-b6538c3e7c4de8dbaf6db50a54e10f5e5cb52813.tar.gz
yuzu-b6538c3e7c4de8dbaf6db50a54e10f5e5cb52813.tar.bz2
yuzu-b6538c3e7c4de8dbaf6db50a54e10f5e5cb52813.tar.lz
yuzu-b6538c3e7c4de8dbaf6db50a54e10f5e5cb52813.tar.xz
yuzu-b6538c3e7c4de8dbaf6db50a54e10f5e5cb52813.tar.zst
yuzu-b6538c3e7c4de8dbaf6db50a54e10f5e5cb52813.zip
Diffstat (limited to 'src/core/hle/kernel/handle_table.cpp')
-rw-r--r--src/core/hle/kernel/handle_table.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp
index e441a27fc..35448b576 100644
--- a/src/core/hle/kernel/handle_table.cpp
+++ b/src/core/hle/kernel/handle_table.cpp
@@ -30,6 +30,7 @@ HandleTable::~HandleTable() = default;
ResultCode HandleTable::SetSize(s32 handle_table_size) {
if (static_cast<u32>(handle_table_size) > MAX_COUNT) {
+ LOG_ERROR(Kernel, "Handle table size {} is greater than {}", handle_table_size, MAX_COUNT);
return ERR_OUT_OF_MEMORY;
}
@@ -80,6 +81,7 @@ ResultVal<Handle> HandleTable::Duplicate(Handle handle) {
ResultCode HandleTable::Close(Handle handle) {
if (!IsValid(handle)) {
+ LOG_ERROR(Kernel, "Handle is not valid! handle={:08X}", handle);
return ERR_INVALID_HANDLE;
}