summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.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/svc.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/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 41ef2caf6..4ae4529f5 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -685,6 +685,8 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, u64 ha
case GetInfoType::TotalPhysicalMemoryAvailableWithoutSystemResource:
case GetInfoType::TotalPhysicalMemoryUsedWithoutSystemResource: {
if (info_sub_id != 0) {
+ LOG_ERROR(Kernel_SVC, "Info sub id is non zero! info_id={}, info_sub_id={}", info_id,
+ info_sub_id);
return ERR_INVALID_ENUM_VALUE;
}
@@ -692,6 +694,8 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, u64 ha
system.Kernel().CurrentProcess()->GetHandleTable();
const auto process = current_process_handle_table.Get<Process>(static_cast<Handle>(handle));
if (!process) {
+ LOG_ERROR(Kernel_SVC, "Process is not valid! info_id={}, info_sub_id={}, handle={:08X}",
+ info_id, info_sub_id, handle);
return ERR_INVALID_HANDLE;
}
@@ -783,10 +787,13 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, u64 ha
case GetInfoType::RegisterResourceLimit: {
if (handle != 0) {
+ LOG_ERROR(Kernel, "Handle is non zero! handle={:08X}", handle);
return ERR_INVALID_HANDLE;
}
if (info_sub_id != 0) {
+ LOG_ERROR(Kernel, "Info sub id is non zero! info_id={}, info_sub_id={}", info_id,
+ info_sub_id);
return ERR_INVALID_COMBINATION;
}