summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-04-15 21:33:07 -0400
committerGravatar Lioncash2019-04-29 01:38:27 -0400
commit19632d24211df1a0f6a347f201e4b815b6715630 (patch)
tree06a65f8a6c7519a0c1d8faea867686dd261cd17d /src/core/hle/kernel/svc.cpp
parentkernel/svc: Reorganize svcSetThreadCoreMask() (diff)
downloadyuzu-19632d24211df1a0f6a347f201e4b815b6715630.tar.gz
yuzu-19632d24211df1a0f6a347f201e4b815b6715630.tar.xz
yuzu-19632d24211df1a0f6a347f201e4b815b6715630.zip
kernel/svc: Make svcCreateThread/svcStartThread/svcSleepThread/svcExitThread calls show up in the debug log
These are actually quite important indicators of thread lifetimes, so they should be going into the debug log, rather than being treated as misc info and delegated to the trace log.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 5ed00d451..a5bd92433 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -1208,7 +1208,7 @@ static void ExitProcess(Core::System& system) {
1208/// Creates a new thread 1208/// Creates a new thread
1209static ResultCode CreateThread(Core::System& system, Handle* out_handle, VAddr entry_point, u64 arg, 1209static ResultCode CreateThread(Core::System& system, Handle* out_handle, VAddr entry_point, u64 arg,
1210 VAddr stack_top, u32 priority, s32 processor_id) { 1210 VAddr stack_top, u32 priority, s32 processor_id) {
1211 LOG_TRACE(Kernel_SVC, 1211 LOG_DEBUG(Kernel_SVC,
1212 "called entrypoint=0x{:08X}, arg=0x{:08X}, stacktop=0x{:08X}, " 1212 "called entrypoint=0x{:08X}, arg=0x{:08X}, stacktop=0x{:08X}, "
1213 "threadpriority=0x{:08X}, processorid=0x{:08X} : created handle=0x{:08X}", 1213 "threadpriority=0x{:08X}, processorid=0x{:08X} : created handle=0x{:08X}",
1214 entry_point, arg, stack_top, priority, processor_id, *out_handle); 1214 entry_point, arg, stack_top, priority, processor_id, *out_handle);
@@ -1266,7 +1266,7 @@ static ResultCode CreateThread(Core::System& system, Handle* out_handle, VAddr e
1266 1266
1267/// Starts the thread for the provided handle 1267/// Starts the thread for the provided handle
1268static ResultCode StartThread(Core::System& system, Handle thread_handle) { 1268static ResultCode StartThread(Core::System& system, Handle thread_handle) {
1269 LOG_TRACE(Kernel_SVC, "called thread=0x{:08X}", thread_handle); 1269 LOG_DEBUG(Kernel_SVC, "called thread=0x{:08X}", thread_handle);
1270 1270
1271 const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable(); 1271 const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
1272 const SharedPtr<Thread> thread = handle_table.Get<Thread>(thread_handle); 1272 const SharedPtr<Thread> thread = handle_table.Get<Thread>(thread_handle);
@@ -1289,7 +1289,7 @@ static ResultCode StartThread(Core::System& system, Handle thread_handle) {
1289 1289
1290/// Called when a thread exits 1290/// Called when a thread exits
1291static void ExitThread(Core::System& system) { 1291static void ExitThread(Core::System& system) {
1292 LOG_TRACE(Kernel_SVC, "called, pc=0x{:08X}", system.CurrentArmInterface().GetPC()); 1292 LOG_DEBUG(Kernel_SVC, "called, pc=0x{:08X}", system.CurrentArmInterface().GetPC());
1293 1293
1294 auto* const current_thread = system.CurrentScheduler().GetCurrentThread(); 1294 auto* const current_thread = system.CurrentScheduler().GetCurrentThread();
1295 current_thread->Stop(); 1295 current_thread->Stop();
@@ -1299,7 +1299,7 @@ static void ExitThread(Core::System& system) {
1299 1299
1300/// Sleep the current thread 1300/// Sleep the current thread
1301static void SleepThread(Core::System& system, s64 nanoseconds) { 1301static void SleepThread(Core::System& system, s64 nanoseconds) {
1302 LOG_TRACE(Kernel_SVC, "called nanoseconds={}", nanoseconds); 1302 LOG_DEBUG(Kernel_SVC, "called nanoseconds={}", nanoseconds);
1303 1303
1304 enum class SleepType : s64 { 1304 enum class SleepType : s64 {
1305 YieldWithoutLoadBalancing = 0, 1305 YieldWithoutLoadBalancing = 0,