diff options
| author | 2018-02-14 10:07:03 -0500 | |
|---|---|---|
| committer | 2018-02-14 10:07:03 -0500 | |
| commit | d939792b9b7b81953b7ddc7df1a86a9e9e3c9add (patch) | |
| tree | 99b757106b78913075fd954d6c85d296aa3c9c57 /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #189 from lioncash/misc (diff) | |
| parent | memory: Silence formatting sepecifier warnings (diff) | |
| download | yuzu-d939792b9b7b81953b7ddc7df1a86a9e9e3c9add.tar.gz yuzu-d939792b9b7b81953b7ddc7df1a86a9e9e3c9add.tar.xz yuzu-d939792b9b7b81953b7ddc7df1a86a9e9e3c9add.zip | |
Merge pull request #191 from lioncash/log
core: Silence formatting specifier warnings
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 111c496b9..1a33cc6cb 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <cinttypes> | ||
| 6 | #include <list> | 7 | #include <list> |
| 7 | #include <vector> | 8 | #include <vector> |
| 8 | #include "common/assert.h" | 9 | #include "common/assert.h" |
| @@ -379,7 +380,7 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point, | |||
| 379 | SharedPtr<Process> owner_process) { | 380 | SharedPtr<Process> owner_process) { |
| 380 | // Check if priority is in ranged. Lowest priority -> highest priority id. | 381 | // Check if priority is in ranged. Lowest priority -> highest priority id. |
| 381 | if (priority > THREADPRIO_LOWEST) { | 382 | if (priority > THREADPRIO_LOWEST) { |
| 382 | LOG_ERROR(Kernel_SVC, "Invalid thread priority: %d", priority); | 383 | LOG_ERROR(Kernel_SVC, "Invalid thread priority: %u", priority); |
| 383 | return ERR_OUT_OF_RANGE; | 384 | return ERR_OUT_OF_RANGE; |
| 384 | } | 385 | } |
| 385 | 386 | ||
| @@ -391,7 +392,7 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point, | |||
| 391 | // TODO(yuriks): Other checks, returning 0xD9001BEA | 392 | // TODO(yuriks): Other checks, returning 0xD9001BEA |
| 392 | 393 | ||
| 393 | if (!Memory::IsValidVirtualAddress(*owner_process, entry_point)) { | 394 | if (!Memory::IsValidVirtualAddress(*owner_process, entry_point)) { |
| 394 | LOG_ERROR(Kernel_SVC, "(name=%s): invalid entry %08x", name.c_str(), entry_point); | 395 | LOG_ERROR(Kernel_SVC, "(name=%s): invalid entry %016" PRIx64, name.c_str(), entry_point); |
| 395 | // TODO (bunnei): Find the correct error code to use here | 396 | // TODO (bunnei): Find the correct error code to use here |
| 396 | return ResultCode(-1); | 397 | return ResultCode(-1); |
| 397 | } | 398 | } |