Created
November 2, 2011 15:11
-
-
Save elecyb/1333872 to your computer and use it in GitHub Desktop.
wardenlog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Warden/WardenWin.cpp b/src/server/game/Warden/WardenWin.cpp | |
index 2eec20a..dadc08b 100644 | |
--- a/src/server/game/Warden/WardenWin.cpp | |
+++ b/src/server/game/Warden/WardenWin.cpp | |
@@ -431,7 +431,10 @@ void WardenWin::HandleData(ByteBuffer &buff) | |
if (memcmp(buff.contents() + buff.rpos(), rs->Result.AsByteArray(0, false), rd->Length) != 0) | |
{ | |
- sLog->outWarden("RESULT MEM_CHECK fail CheckId %u account Id %u", *itr, _session->GetAccountId()); | |
+ std::string sClientRes; | |
+ const uint8 * byteArr = buff.contents() + buff.rpos(); | |
+ hexEncodeByteArray((uint8 *)byteArr, rd->Length, sClientRes); | |
+ sLog->outWarden("RESULT MEM_CHECK fail CheckId %u account Id %u Address: %u, Expected: %s, Got: %s", *itr, _session->GetAccountId(), rd->Address ,rs->Result.AsHexStr(), sClientRes.c_str()); | |
checkFailed = *itr; | |
buff.rpos(buff.rpos() + rd->Length); | |
continue; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment