From 6895d635acb37ba42e53ba95ca3eee2ddbbef24d Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 28 Nov 2014 21:19:14 +0000 Subject: Massive code cleanup and fixes for a lot of warnings reported in #837 git-svn-id: http://svn.miranda-ng.org/main/trunk@11136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_pooling.cpp | 8 ++++---- protocols/Steam/src/steam_proto.cpp | 2 +- protocols/Steam/src/steam_queue.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/steam_pooling.cpp b/protocols/Steam/src/steam_pooling.cpp index 64d72acb09..164baa9b47 100644 --- a/protocols/Steam/src/steam_pooling.cpp +++ b/protocols/Steam/src/steam_pooling.cpp @@ -65,7 +65,7 @@ void CSteamProto::ParsePollData(JSONNODE *data) if (status != m_iStatus) { - debugLogA("CSteamProto::ParsePollData: Change own status to %i", status); + debugLog(_T("CSteamProto::ParsePollData: Change own status to %i"), status); int oldStatus = m_iStatus; m_iStatus = m_iDesiredStatus = status; ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus); @@ -170,7 +170,7 @@ void CSteamProto::ParsePollData(JSONNODE *data) void CSteamProto::PollingThread(void*) { - debugLogA("CSteamProto::PollingThread: entering"); + debugLog(_T("CSteamProto::PollingThread: entering")); ptrA token(getStringA("TokenSecret")); ptrA umqId(getStringA("UMQID")); @@ -235,7 +235,7 @@ void CSteamProto::PollingThread(void*) else { // something wrong - debugLogA("CSteamProto::PollingThread: %s (%d)", _T2A(error), response->resultCode); + debugLog(_T("CSteamProto::PollingThread: %s (%d)"), error, response->resultCode); // token has expired if (response->resultCode == HTTP_STATUS_UNAUTHORIZED) @@ -250,7 +250,7 @@ void CSteamProto::PollingThread(void*) setDword("MessageID", messageId); m_hPollingThread = NULL; - debugLogA("CSteamProto::PollingThread: leaving"); + debugLog(_T("CSteamProto::PollingThread: leaving")); if (!isTerminated) { diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index e6a72ca52a..8941a73f74 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -317,7 +317,7 @@ int CSteamProto::SetStatus(int new_status) if (new_status == m_iDesiredStatus) return 0; - debugLogA("CSteamProto::SetStatus: changing status from %i to %i", m_iStatus, new_status); + debugLog(_T("CSteamProto::SetStatus: changing status from %i to %i"), m_iStatus, new_status); int old_status = m_iStatus; m_iDesiredStatus = new_status; diff --git a/protocols/Steam/src/steam_queue.cpp b/protocols/Steam/src/steam_queue.cpp index d500ea708d..b0a7c959d9 100644 --- a/protocols/Steam/src/steam_queue.cpp +++ b/protocols/Steam/src/steam_queue.cpp @@ -117,7 +117,7 @@ void CSteamProto::ExecuteRequest(QueueItem *item) void CSteamProto::QueueThread(void*) { - debugLogA("CSteamProto::QueueThread: entering"); + debugLog(_T("CSteamProto::QueueThread: entering")); while (!isTerminated) { @@ -142,5 +142,5 @@ void CSteamProto::QueueThread(void*) } } - debugLogA("CSteamProto::QueueThread: leaving"); + debugLog(_T("CSteamProto::QueueThread: leaving")); } \ No newline at end of file -- cgit v1.2.3