From 2690be44d81f1a3ec93945a9d1abdd1cbbbad820 Mon Sep 17 00:00:00 2001 From: cathery Date: Tue, 10 Mar 2020 12:47:32 +0300 Subject: [PATCH] Change some WriteToLog calls --- source/Sysmodule/source/controller_handler.cpp | 6 ++---- source/Sysmodule/source/usb_module.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/source/Sysmodule/source/controller_handler.cpp b/source/Sysmodule/source/controller_handler.cpp index e06a16d..23fc93e 100644 --- a/source/Sysmodule/source/controller_handler.cpp +++ b/source/Sysmodule/source/controller_handler.cpp @@ -23,24 +23,22 @@ namespace syscon::controllers Result Insert(std::unique_ptr &&controllerPtr) { - WriteToLog("Inserting controller"); std::unique_ptr switchHandler; if (UseAbstractedPad) { switchHandler = std::make_unique(std::move(controllerPtr)); - WriteToLog("Inserting as abstracted pad"); + WriteToLog("Inserting controller as abstracted pad"); } else { switchHandler = std::make_unique(std::move(controllerPtr)); - WriteToLog("Inserting as HDLs"); + WriteToLog("Inserting controller as HDLs"); } Result rc = switchHandler->Initialize(); if (R_SUCCEEDED(rc)) controllerHandlers.push_back(std::move(switchHandler)); - WriteToLog("Controller result: 0x%x", rc); return rc; } diff --git a/source/Sysmodule/source/usb_module.cpp b/source/Sysmodule/source/usb_module.cpp index 34d98d3..28c8000 100644 --- a/source/Sysmodule/source/usb_module.cpp +++ b/source/Sysmodule/source/usb_module.cpp @@ -133,7 +133,7 @@ namespace syscon::usb if (!found_flag) { - //WriteToLog("Erasing controller! %i", (*it)->GetController()->GetType()); + WriteToLog("Erasing controller"); controllers::Get().erase(it--); WriteToLog("Controller erased!"); }