From 5cc33ded57fc129f3ebfe7042a0ae8f939e976b5 Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Wed, 16 Dec 2020 02:19:40 +0100 Subject: [PATCH] Remove newlines at the end of logs --- src/ConfigHooks.cpp | 4 ++-- src/FunctionPatches.cpp | 8 ++++---- src/WUPSConfigItemPadMapping.cpp | 8 ++++---- src/main.cpp | 12 ++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/ConfigHooks.cpp b/src/ConfigHooks.cpp index 6ba950f..5637882 100644 --- a/src/ConfigHooks.cpp +++ b/src/ConfigHooks.cpp @@ -23,12 +23,12 @@ #include "WUPSConfigItemPadMapping.h" void rumbleChanged(WUPSConfigItemBoolean * item, bool newValue) { - DEBUG_FUNCTION_LINE("rumbleChanged %d \n",newValue); + DEBUG_FUNCTION_LINE("rumbleChanged %d ",newValue); ControllerPatcher::setRumbleActivated(newValue); } void networkClient(WUPSConfigItemBoolean * item, bool newValue) { - DEBUG_FUNCTION_LINE("Trigger network %d\n",newValue); + DEBUG_FUNCTION_LINE("Trigger network %d",newValue); ControllerPatcher::setNetworkControllerActivated(newValue); if(newValue) { ControllerPatcher::startNetworkServer(); diff --git a/src/FunctionPatches.cpp b/src/FunctionPatches.cpp index 0ba6aff..9cc14d1 100644 --- a/src/FunctionPatches.cpp +++ b/src/FunctionPatches.cpp @@ -68,7 +68,7 @@ DECL_FUNCTION(int32_t, WPADProbe, WPADChan chan, uint32_t * result ) { } DECL_FUNCTION(WPADConnectCallback,WPADSetConnectCallback,WPADChan chan, WPADConnectCallback callback ) { - //log_printf("WPADSetConnectCallback chan %d %08X\n",chan,callback); + //log_printf("WPADSetConnectCallback chan %d %08X",chan,callback); ControllerPatcher::setWPADConnectCallback(chan,callback); @@ -84,7 +84,7 @@ DECL_FUNCTION(WPADConnectCallback,WPADSetConnectCallback,WPADChan chan, WPADConn } DECL_FUNCTION(WPADExtensionCallback,WPADSetExtensionCallback,WPADChan chan, WPADExtensionCallback callback ) { - //log_printf("WPADSetExtensionCallback chan %d %08X\n",chan,callback); + //log_printf("WPADSetExtensionCallback chan %d %08X",chan,callback); ControllerPatcher::setKPADExtensionCallback(chan,callback); @@ -100,7 +100,7 @@ DECL_FUNCTION(WPADExtensionCallback,WPADSetExtensionCallback,WPADChan chan, WPAD } DECL_FUNCTION(WPADConnectCallback,KPADSetConnectCallback,WPADChan chan, WPADConnectCallback callback ) { - //log_printf("KPADSetConnectCallback chan %d %08X\n",chan,callback); + //log_printf("KPADSetConnectCallback chan %d %08X",chan,callback); ControllerPatcher::setKPADConnectedCallback(chan,callback); @@ -129,7 +129,7 @@ DECL_FUNCTION(uint8_t, WPADGetBatteryLevel, WPADChan chan) { //In case a game relies on this... DECL_FUNCTION(uint32_t, WPADGetDataFormat, WPADChan chan) { - //log_printf("WPADGetDataFormat chan: %d result: %d\n",chan,result); + //log_printf("WPADGetDataFormat chan: %d result: %d",chan,result); if((chan == WPAD_CHAN_0 && ControllerPatcher::isControllerConnectedAndActive(UController_Type_Pro1)) || (chan == WPAD_CHAN_1 && ControllerPatcher::isControllerConnectedAndActive(UController_Type_Pro2)) || (chan == WPAD_CHAN_2 && ControllerPatcher::isControllerConnectedAndActive(UController_Type_Pro3)) || diff --git a/src/WUPSConfigItemPadMapping.cpp b/src/WUPSConfigItemPadMapping.cpp index 33fb0fb..604aaa0 100644 --- a/src/WUPSConfigItemPadMapping.cpp +++ b/src/WUPSConfigItemPadMapping.cpp @@ -115,12 +115,12 @@ void WUPSConfigItemPadMapping::checkForInput() { int32_t result = ControllerPatcher::gettingInputAllDevices(hiddata,inputsize); if(result > 0) { - //log_printf("got %d results\n",result); + //log_printf("got %d results",result); for(int32_t i =0; i