summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-30 10:15:54 +0200
committermadmaxoft <github@xoft.cz>2013-08-30 10:15:54 +0200
commitd61c9bfb6193925b6914c560549585917a3a47d8 (patch)
tree1b5f5b44f7863a42754be638735818cab46f3e7a /Tools
parentProtoProxy: Uses cTimer for the timing information. (diff)
downloadcuberite-d61c9bfb6193925b6914c560549585917a3a47d8.tar
cuberite-d61c9bfb6193925b6914c560549585917a3a47d8.tar.gz
cuberite-d61c9bfb6193925b6914c560549585917a3a47d8.tar.bz2
cuberite-d61c9bfb6193925b6914c560549585917a3a47d8.tar.lz
cuberite-d61c9bfb6193925b6914c560549585917a3a47d8.tar.xz
cuberite-d61c9bfb6193925b6914c560549585917a3a47d8.tar.zst
cuberite-d61c9bfb6193925b6914c560549585917a3a47d8.zip
Diffstat (limited to 'Tools')
-rw-r--r--Tools/ProtoProxy/Connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp
index 4e989d7ae..08daf5766 100644
--- a/Tools/ProtoProxy/Connection.cpp
+++ b/Tools/ProtoProxy/Connection.cpp
@@ -560,9 +560,9 @@ bool cConnection::DecodeClientsPackets(const char * a_Data, int a_Size)
while (m_ClientBuffer.CanReadBytes(1))
{
- Log("Decoding client's packets, there are now %d bytes in the queue", m_ClientBuffer.GetReadableSpace());
unsigned char PacketType;
m_ClientBuffer.ReadByte(PacketType);
+ Log("Decoding client's packets, there are now %d bytes in the queue; next packet is 0x%02x", m_ClientBuffer.GetReadableSpace(), PacketType);
switch (PacketType)
{
case PACKET_BLOCK_DIG: HANDLE_CLIENT_READ(HandleClientBlockDig); break;
@@ -647,7 +647,7 @@ bool cConnection::DecodeServersPackets(const char * a_Data, int a_Size)
{
unsigned char PacketType;
m_ServerBuffer.ReadByte(PacketType);
- Log("Decoding server's packets, there are now %d bytes in the queue; next packet is 0x%x", m_ServerBuffer.GetReadableSpace(), PacketType);
+ Log("Decoding server's packets, there are now %d bytes in the queue; next packet is 0x%02x", m_ServerBuffer.GetReadableSpace(), PacketType);
LogFlush();
switch (PacketType)
{