summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-19 17:00:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-19 17:00:48 +0300
commit2e7f792b0f5ef9fc68b90f80f4dcaad5a4cffc07 (patch)
tree09a83d1a3df14b750e17d5d71f6f53f2abe4aaf6
parent5a189e3fbf4e49d352ff68113211d6b59d9217c8 (diff)
downloadplus-2e7f792b0f5ef9fc68b90f80f4dcaad5a4cffc07.tar.gz
plus-2e7f792b0f5ef9fc68b90f80f4dcaad5a4cffc07.tar.bz2
plus-2e7f792b0f5ef9fc68b90f80f4dcaad5a4cffc07.tar.xz
plus-2e7f792b0f5ef9fc68b90f80f4dcaad5a4cffc07.zip
add a bit formatting in logging network packets.
-rw-r--r--src/net/eathena/messagein.cpp6
-rw-r--r--src/net/messagein.cpp4
-rw-r--r--src/net/messageout.cpp2
-rw-r--r--src/net/tmwa/messagein.cpp6
4 files changed, 9 insertions, 9 deletions
diff --git a/src/net/eathena/messagein.cpp b/src/net/eathena/messagein.cpp
index 49e320aa7..f0715e5cb 100644
--- a/src/net/eathena/messagein.cpp
+++ b/src/net/eathena/messagein.cpp
@@ -79,7 +79,7 @@ int16_t MessageIn::readInt16(const char *const str)
memcpy(&value, mData + static_cast<size_t>(mPos), sizeof(int16_t));
#endif
}
- DEBUGLOG2("readInt16: " + toStringPrint(static_cast<unsigned int>(
+ DEBUGLOG2("readInt16: " + toStringPrint(static_cast<unsigned int>(
static_cast<uint16_t>(value))),
mPos, str);
mPos += 2;
@@ -100,7 +100,7 @@ int32_t MessageIn::readInt32(const char *const str)
memcpy(&value, mData + static_cast<size_t>(mPos), sizeof(int32_t));
#endif
}
- DEBUGLOG2("readInt32: " + toStringPrint(static_cast<unsigned int>(value)),
+ DEBUGLOG2("readInt32: " + toStringPrint(static_cast<unsigned int>(value)),
mPos, str);
mPos += 4;
PacketCounters::incInBytes(4);
@@ -120,7 +120,7 @@ int64_t MessageIn::readInt64(const char *const str)
memcpy(&value, mData + static_cast<size_t>(mPos), sizeof(int64_t));
#endif
}
- DEBUGLOG2("readInt64: " + toStringPrint(static_cast<unsigned int>(value)),
+ DEBUGLOG2("readInt64: " + toStringPrint(static_cast<unsigned int>(value)),
mPos, str);
mPos += 8;
PacketCounters::incInBytes(8);
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index 79e506715..dee3c2c64 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -73,7 +73,7 @@ unsigned char MessageIn::readUInt8(const char *const str)
if (mPos < mLength)
value = static_cast<unsigned char>(mData[mPos]);
- DEBUGLOG2("readUInt8: " + toStringPrint(static_cast<unsigned int>(value)),
+ DEBUGLOG2("readUInt8: " + toStringPrint(static_cast<unsigned int>(value)),
mPos, str);
mPos += 1;
PacketCounters::incInBytes(1);
@@ -86,7 +86,7 @@ signed char MessageIn::readInt8(const char *const str)
if (mPos < mLength)
value = static_cast<signed char>(mData[mPos]);
- DEBUGLOG2("readInt8: " + toStringPrint(static_cast<unsigned int>(
+ DEBUGLOG2("readInt8: " + toStringPrint(static_cast<unsigned int>(
static_cast<unsigned char>(value))),
mPos, str);
mPos += 1;
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index 3241ffbfd..807cff66a 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -53,7 +53,7 @@ void MessageOut::writeInt8(const int8_t value, const char *const str)
{
expand(1);
mData[mPos] = value;
- DEBUGLOG2("writeInt8: " + toStringPrint(static_cast<unsigned int>(
+ DEBUGLOG2("writeInt8: " + toStringPrint(static_cast<unsigned int>(
static_cast<uint8_t>(value))),
mPos, str);
mPos += 1;
diff --git a/src/net/tmwa/messagein.cpp b/src/net/tmwa/messagein.cpp
index 01956bc3b..660548bd6 100644
--- a/src/net/tmwa/messagein.cpp
+++ b/src/net/tmwa/messagein.cpp
@@ -79,7 +79,7 @@ int16_t MessageIn::readInt16(const char *const str)
memcpy(&value, mData + static_cast<size_t>(mPos), sizeof(int16_t));
#endif
}
- DEBUGLOG2("readInt16: " + toStringPrint(static_cast<unsigned int>(
+ DEBUGLOG2("readInt16: " + toStringPrint(static_cast<unsigned int>(
static_cast<uint16_t>(value))),
mPos, str);
mPos += 2;
@@ -100,7 +100,7 @@ int32_t MessageIn::readInt32(const char *const str)
memcpy(&value, mData + static_cast<size_t>(mPos), sizeof(int32_t));
#endif
}
- DEBUGLOG2("readInt32: " + toStringPrint(static_cast<unsigned int>(value)),
+ DEBUGLOG2("readInt32: " + toStringPrint(static_cast<unsigned int>(value)),
mPos, str);
mPos += 4;
PacketCounters::incInBytes(4);
@@ -120,7 +120,7 @@ int64_t MessageIn::readInt64(const char *const str)
memcpy(&value, mData + static_cast<size_t>(mPos), sizeof(int64_t));
#endif
}
- DEBUGLOG2("readInt64: " + toStringPrint(static_cast<unsigned int>(value)),
+ DEBUGLOG2("readInt64: " + toStringPrint(static_cast<unsigned int>(value)),
mPos, str);
mPos += 8;
PacketCounters::incInBytes(8);