summaryrefslogtreecommitdiff
path: root/src/net/eathena/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/network.cpp')
-rw-r--r--src/net/eathena/network.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index 2b716c2f8..96675002d 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -118,8 +118,9 @@ void Network::dispatchMessages()
if (len == 0)
{
// need copy data for safty
- std::string str = strprintf("Wrong packet %u ""received. Exiting.",
- msgId);
+ std::string str = strprintf(
+ "Wrong packet %u 0x%x received. Exiting.",
+ msgId, msgId);
logger->safeError(str);
}
@@ -129,7 +130,7 @@ void Network::dispatchMessages()
if (handler)
handler->handleMessage(msg);
else
- logger->log("Unhandled packet: %x", msgId);
+ logger->log("Unhandled packet: %u 0x%x", msgId, msgId);
}
skip(len);