diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-04-29 06:53:53 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-04-29 06:53:53 +0200 |
commit | b6538c3e7c4de8dbaf6db50a54e10f5e5cb52813 (patch) | |
tree | 20dbce57eddb9b4930fcc792badee679b9f961fe /src/core/hle/kernel/mutex.cpp | |
parent | Merge pull request #3771 from benru/dump-romfs-with-updates (diff) | |
download | yuzu-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/mutex.cpp')
-rw-r--r-- | src/core/hle/kernel/mutex.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index eff4e45b0..7869eb32b 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp @@ -7,6 +7,7 @@ #include <vector> #include "common/assert.h" +#include "common/logging/log.h" #include "core/core.h" #include "core/hle/kernel/errors.h" #include "core/hle/kernel/handle_table.h" @@ -67,6 +68,7 @@ ResultCode Mutex::TryAcquire(VAddr address, Handle holding_thread_handle, Handle requesting_thread_handle) { // The mutex address must be 4-byte aligned if ((address % sizeof(u32)) != 0) { + LOG_ERROR(Kernel, "Address is not 4-byte aligned! address={:016X}", address); return ERR_INVALID_ADDRESS; } @@ -88,6 +90,8 @@ ResultCode Mutex::TryAcquire(VAddr address, Handle holding_thread_handle, } if (holding_thread == nullptr) { + LOG_ERROR(Kernel, "Holding thread does not exist! thread_handle={:08X}", + holding_thread_handle); return ERR_INVALID_HANDLE; } @@ -109,6 +113,7 @@ ResultCode Mutex::TryAcquire(VAddr address, Handle holding_thread_handle, ResultCode Mutex::Release(VAddr address) { // The mutex address must be 4-byte aligned if ((address % sizeof(u32)) != 0) { + LOG_ERROR(Kernel, "Address is not 4-byte aligned! address={:016X}", address); return ERR_INVALID_ADDRESS; } |