diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-11 21:46:32 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-11 21:46:32 +0100 |
commit | f64f8790274c4ee63b4eb904110bd35f93652d78 (patch) | |
tree | 43b5f5b8ecb37f3b5adefd575090c975876f6fba /src/Protocol/Protocol17x.cpp | |
parent | Added macros to follow format string checking through wrappers (diff) | |
download | cuberite-f64f8790274c4ee63b4eb904110bd35f93652d78.tar cuberite-f64f8790274c4ee63b4eb904110bd35f93652d78.tar.gz cuberite-f64f8790274c4ee63b4eb904110bd35f93652d78.tar.bz2 cuberite-f64f8790274c4ee63b4eb904110bd35f93652d78.tar.lz cuberite-f64f8790274c4ee63b4eb904110bd35f93652d78.tar.xz cuberite-f64f8790274c4ee63b4eb904110bd35f93652d78.tar.zst cuberite-f64f8790274c4ee63b4eb904110bd35f93652d78.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp index 8c800036e..e76c0fe49 100644 --- a/src/Protocol/Protocol17x.cpp +++ b/src/Protocol/Protocol17x.cpp @@ -1251,7 +1251,7 @@ void cProtocol172::AddReceivedData(const char * a_Data, int a_Size) ASSERT(m_ReceivedData.GetReadableSpace() == OldReadableSpace); AString Hex; CreateHexDump(Hex, AllData.data(), AllData.size(), 16); - m_CommLogFile.Printf("Incoming data, %d (0x%x) unparsed bytes already present in buffer:\n%s\n", + m_CommLogFile.Printf("Incoming data, %zu (0x%zx) unparsed bytes already present in buffer:\n%s\n", AllData.size(), AllData.size(), Hex.c_str() ); } @@ -1351,7 +1351,7 @@ void cProtocol172::AddReceivedData(const char * a_Data, int a_Size) // Put a message in the comm log: if (g_ShouldLogCommIn) { - m_CommLogFile.Printf("^^^^^^ Wrong number of bytes read for this packet (exp %d left, got %d left) ^^^^^^\n\n\n", + m_CommLogFile.Printf("^^^^^^ Wrong number of bytes read for this packet (exp %d left, got %zu left) ^^^^^^\n\n\n", 1, bb.GetReadableSpace() ); m_CommLogFile.Flush(); @@ -1373,7 +1373,7 @@ void cProtocol172::AddReceivedData(const char * a_Data, int a_Size) ASSERT(m_ReceivedData.GetReadableSpace() == OldReadableSpace); AString Hex; CreateHexDump(Hex, AllData.data(), AllData.size(), 16); - m_CommLogFile.Printf("There are %d (0x%x) bytes of non-parse-able data left in the buffer:\n%s", + m_CommLogFile.Printf("There are %zu (0x%zx) bytes of non-parse-able data left in the buffer:\n%s", m_ReceivedData.GetReadableSpace(), m_ReceivedData.GetReadableSpace(), Hex.c_str() ); m_CommLogFile.Flush(); |