VERY experimental Nintendo Switch 2 emulator
C++
Demote services from warning/info to debug to reduce log spam: GetCurrentFocusState SetClockSpeed EnableSixAxisSensorUnalteredPassthrough IsSixAxisSensorUnalteredPassthroughEnabled Get, GetOld SetAndWait, SetAndWaitOld IocParam IocFree
Kelebek1f121da072a68
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cppindex 118f226e41..6fb7e198ea 100644--- a/src/core/hle/service/am/am.cpp+++ b/src/core/hle/service/am/am.cpp@@ -754,7 +754,7 @@ void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) {}void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) {- LOG_WARNING(Service_AM, "(STUBBED) called");+ LOG_DEBUG(Service_AM, "(STUBBED) called");IPC::ResponseBuilder rb{ctx, 3};rb.Push(ResultSuccess);diff --git a/src/core/hle/service/apm/apm_controller.cpp b/src/core/hle/service/apm/apm_controller.cppindex 4e710491b6..d6de84066c 100644--- a/src/core/hle/service/apm/apm_controller.cpp+++ b/src/core/hle/service/apm/apm_controller.cpp@@ -80,7 +80,7 @@ PerformanceConfiguration Controller::GetCurrentPerformanceConfiguration(Performa}void Controller::SetClockSpeed(u32 mhz) {- LOG_INFO(Service_APM, "called, mhz={:08X}", mhz);+ LOG_DEBUG(Service_APM, "called, mhz={:08X}", mhz);// TODO(DarkLordZach): Actually signal core_timing to change clock speed.// TODO(Rodrigo): Remove [[maybe_unused]] when core_timing is used.}diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cppindex 7909141c01..3d34571600 100644--- a/src/core/hle/service/hid/hid.cpp+++ b/src/core/hle/service/hid/hid.cpp@@ -819,12 +819,12 @@ void Hid::EnableSixAxisSensorUnalteredPassthrough(Kernel::HLERequestContext& ctxconst auto result = controller.EnableSixAxisSensorUnalteredPassthrough(parameters.sixaxis_handle, parameters.enabled);- LOG_WARNING(Service_HID,- "(STUBBED) called, enabled={}, npad_type={}, npad_id={}, device_index={}, "- "applet_resource_user_id={}",- parameters.enabled, parameters.sixaxis_handle.npad_type,- parameters.sixaxis_handle.npad_id, parameters.sixaxis_handle.device_index,- parameters.applet_resource_user_id);+ LOG_DEBUG(Service_HID,+ "(STUBBED) called, enabled={}, npad_type={}, npad_id={}, device_index={}, "+ "applet_resource_user_id={}",+ parameters.enabled, parameters.sixaxis_handle.npad_type,+ parameters.sixaxis_handle.npad_id, parameters.sixaxis_handle.device_index,+ parameters.applet_resource_user_id);IPC::ResponseBuilder rb{ctx, 2};rb.Push(result);@@ -846,7 +846,7 @@ void Hid::IsSixAxisSensorUnalteredPassthroughEnabled(Kernel::HLERequestContext&const auto result = controller.IsSixAxisSensorUnalteredPassthroughEnabled(parameters.sixaxis_handle, is_unaltered_sisxaxis_enabled);- LOG_WARNING(+ LOG_DEBUG(Service_HID,"(STUBBED) called, npad_type={}, npad_id={}, device_index={}, applet_resource_user_id={}",parameters.sixaxis_handle.npad_type, parameters.sixaxis_handle.npad_id,diff --git a/src/core/hle/service/mm/mm_u.cpp b/src/core/hle/service/mm/mm_u.cppindex 5ebb124a77..ba8c0e2305 100644--- a/src/core/hle/service/mm/mm_u.cpp+++ b/src/core/hle/service/mm/mm_u.cpp@@ -46,7 +46,7 @@ private:IPC::RequestParser rp{ctx};min = rp.Pop<u32>();max = rp.Pop<u32>();- LOG_WARNING(Service_MM, "(STUBBED) called, min=0x{:X}, max=0x{:X}", min, max);+ LOG_DEBUG(Service_MM, "(STUBBED) called, min=0x{:X}, max=0x{:X}", min, max);current = min;IPC::ResponseBuilder rb{ctx, 2};@@ -54,7 +54,7 @@ private:}void GetOld(Kernel::HLERequestContext& ctx) {- LOG_WARNING(Service_MM, "(STUBBED) called");+ LOG_DEBUG(Service_MM, "(STUBBED) called");IPC::ResponseBuilder rb{ctx, 3};rb.Push(ResultSuccess);@@ -81,8 +81,8 @@ private:u32 input_id = rp.Pop<u32>();min = rp.Pop<u32>();max = rp.Pop<u32>();- LOG_WARNING(Service_MM, "(STUBBED) called, input_id=0x{:X}, min=0x{:X}, max=0x{:X}",- input_id, min, max);+ LOG_DEBUG(Service_MM, "(STUBBED) called, input_id=0x{:X}, min=0x{:X}, max=0x{:X}", input_id,+ min, max);current = min;IPC::ResponseBuilder rb{ctx, 2};@@ -90,7 +90,7 @@ private:}void Get(Kernel::HLERequestContext& ctx) {- LOG_WARNING(Service_MM, "(STUBBED) called");+ LOG_DEBUG(Service_MM, "(STUBBED) called");IPC::ResponseBuilder rb{ctx, 3};rb.Push(ResultSuccess);diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cppindex 728bfa00b9..d8518149d7 100644--- a/src/core/hle/service/nvdrv/devices/nvmap.cpp+++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp@@ -198,7 +198,7 @@ NvResult nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output)IocParamParams params;std::memcpy(¶ms, input.data(), sizeof(params));- LOG_WARNING(Service_NVDRV, "(STUBBED) called type={}", params.param);+ LOG_DEBUG(Service_NVDRV, "(STUBBED) called type={}", params.param);auto object = GetObject(params.handle);if (!object) {@@ -243,7 +243,7 @@ NvResult nvmap::IocFree(const std::vector<u8>& input, std::vector<u8>& output) {IocFreeParams params;std::memcpy(¶ms, input.data(), sizeof(params));- LOG_WARNING(Service_NVDRV, "(STUBBED) called");+ LOG_DEBUG(Service_NVDRV, "(STUBBED) called");auto itr = handles.find(params.handle);if (itr == handles.end()) {