diff options
author | SmallJoker <mk939@ymail.com> | 2018-04-18 21:26:20 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-04-18 21:26:28 +0200 |
commit | 9877a1a207efd48b569cebe5c80e727477fb590f (patch) | |
tree | 51b39a67817fa26a1565576b1268f267e86428a7 | |
parent | 3eac24946418d787697077cc1806856e514ba5f4 (diff) | |
download | minetest-9877a1a207efd48b569cebe5c80e727477fb590f.tar.gz minetest-9877a1a207efd48b569cebe5c80e727477fb590f.tar.bz2 minetest-9877a1a207efd48b569cebe5c80e727477fb590f.zip |
Fix wrong channel number representation in logs (#7205)
-rw-r--r-- | src/network/connectionthreads.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/connectionthreads.cpp b/src/network/connectionthreads.cpp index 71407bf03..37a435ad8 100644 --- a/src/network/connectionthreads.cpp +++ b/src/network/connectionthreads.cpp @@ -365,7 +365,7 @@ bool ConnectionSendThread::rawSendAsPacket(session_t peer_id, u8 channelnum, < channel->getWindowSize()) { LOG(dout_con << m_connection->getDesc() << " INFO: sending a reliable packet to peer_id " << peer_id - << " channel: " << channelnum + << " channel: " << (u32)channelnum << " seqnum: " << seqnum << std::endl); sendAsPacketReliable(p, channel); return true; @@ -373,7 +373,7 @@ bool ConnectionSendThread::rawSendAsPacket(session_t peer_id, u8 channelnum, LOG(dout_con << m_connection->getDesc() << " INFO: queueing reliable packet for peer_id: " << peer_id - << " channel: " << channelnum + << " channel: " << (u32)channelnum << " seqnum: " << seqnum << std::endl); channel->queued_reliables.push(p); return false; @@ -948,7 +948,7 @@ void ConnectionReceiveThread::receive() if (channelnum > CHANNEL_COUNT - 1) { LOG(derr_con << m_connection->getDesc() - << "Receive(): Invalid channel " << channelnum << std::endl); + << "Receive(): Invalid channel " << (u32)channelnum << std::endl); throw InvalidIncomingDataException("Channel doesn't exist"); } @@ -1024,7 +1024,7 @@ void ConnectionReceiveThread::receive() LOG(dout_con << m_connection->getDesc() << " ProcessPacket from peer_id: " << peer_id - << ",channel: " << (channelnum & 0xFF) << ", returned " + << ", channel: " << (u32)channelnum << ", returned " << resultdata.getSize() << " bytes" << std::endl); ConnectionEvent e; |