summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-17 23:04:35 -0500
committerGravatar Lioncash2018-12-18 18:22:22 -0500
commit2a533f006706836f3229a6375be0bc398277c8c8 (patch)
tree18a77a6bd2984592b7da78d2cb37593c01d4950b /src
parentMerge pull request #1905 from bunnei/ignore-empty-gpu-lists (diff)
downloadyuzu-2a533f006706836f3229a6375be0bc398277c8c8.tar.gz
yuzu-2a533f006706836f3229a6375be0bc398277c8c8.tar.xz
yuzu-2a533f006706836f3229a6375be0bc398277c8c8.zip
service/sm: Improve debug log for RegisterService
Now it also indicates the name and max session count. This also gives a name to the unknown bool. This indicates if the created port is supposed to be using light handles or regular handles internally. This is passed to the respective svcCreatePort parameter internally.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/sm/sm.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index d73530086..142929124 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -145,12 +145,13 @@ void SM::RegisterService(Kernel::HLERequestContext& ctx) {
145 145
146 const std::string name(name_buf.begin(), end); 146 const std::string name(name_buf.begin(), end);
147 147
148 const auto unk_bool = static_cast<bool>(rp.PopRaw<u32>()); 148 const auto is_light = static_cast<bool>(rp.PopRaw<u32>());
149 const auto session_count = rp.PopRaw<u32>(); 149 const auto max_session_count = rp.PopRaw<u32>();
150 150
151 LOG_DEBUG(Service_SM, "called with unk_bool={}", unk_bool); 151 LOG_DEBUG(Service_SM, "called with name={}, max_session_count={}, is_light={}", name,
152 max_session_count, is_light);
152 153
153 auto handle = service_manager->RegisterService(name, session_count); 154 auto handle = service_manager->RegisterService(name, max_session_count);
154 if (handle.Failed()) { 155 if (handle.Failed()) {
155 LOG_ERROR(Service_SM, "failed to register service with error_code={:08X}", 156 LOG_ERROR(Service_SM, "failed to register service with error_code={:08X}",
156 handle.Code().raw); 157 handle.Code().raw);