diff --git a/source/network/NetHost.cpp b/source/network/NetHost.cpp index e5875f6f6e..5092ab76fc 100644 --- a/source/network/NetHost.cpp +++ b/source/network/NetHost.cpp @@ -30,7 +30,7 @@ bool CNetHost::SendMessage(const CNetMessage* message, ENetPeer* peer, const cha if (!packet) return false; - LOGMESSAGE(L"Net: Sending message %hs of size %lu to %s", message->ToString().c_str(), (unsigned long)packet->dataLength, peerName); + LOGMESSAGE(L"Net: Sending message %hs of size %lu to %hs", message->ToString().c_str(), (unsigned long)packet->dataLength, peerName); // Let ENet send the message to peer if (enet_peer_send(peer, DEFAULT_CHANNEL, packet) < 0) diff --git a/source/network/NetTurnManager.cpp b/source/network/NetTurnManager.cpp index a9dfa51ad3..07ec496b99 100644 --- a/source/network/NetTurnManager.cpp +++ b/source/network/NetTurnManager.cpp @@ -128,7 +128,7 @@ bool CNetTurnManager::Update(float frameLength) void CNetTurnManager::OnSyncError(u32 turn, const std::string& expectedHash) { #ifdef NETTURN_LOG - NETTURN_LOG(L"OnSyncError(%d, %s)\n", turn, Hexify(expectedHash).c_str()); + NETTURN_LOG(L"OnSyncError(%d, %hs)\n", turn, Hexify(expectedHash).c_str()); #endif // Only complain the first time @@ -217,7 +217,7 @@ void CNetClientTurnManager::NotifyFinishedOwnCommands(u32 turn) void CNetClientTurnManager::NotifyFinishedUpdate(u32 turn, const std::string& hash) { #ifdef NETTURN_LOG - NETTURN_LOG(L"NotifyFinishedUpdate(%d, %s)\n", turn, Hexify(hash).c_str()); + NETTURN_LOG(L"NotifyFinishedUpdate(%d, %hs)\n", turn, Hexify(hash).c_str()); #endif // Send message to the server @@ -324,7 +324,7 @@ void CNetServerTurnManager::NotifyFinishedClientUpdate(int client, u32 turn, con for (std::map::iterator cit = it->second.begin(); cit != it->second.end(); ++cit) { #ifdef NETTURN_LOG - NETTURN_LOG(L"sync check %d: %d = %s\n", it->first, cit->first, Hexify(cit->second).c_str()); + NETTURN_LOG(L"sync check %d: %d = %hs\n", it->first, cit->first, Hexify(cit->second).c_str()); #endif if (cit->second != expected) {