diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-09-18 20:38:08 +1000 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-09-18 20:39:25 +1000 |
commit | 881a85a22d76c875f519cd54388a419ec6f70857 (patch) | |
tree | 3f71daa59ac35c5dda44747c0b62dbc8602d8f1c /src/protocol.cpp | |
parent | e51321fb75f00194425e5ecc8ad77fd6762ec221 (diff) |
Replace printf with LogPrintf / LogPrint
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 745b4338e4..ba254be3e1 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -67,7 +67,7 @@ bool CMessageHeader::IsValid() const // Message size if (nMessageSize > MAX_SIZE) { - printf("CMessageHeader::IsValid() : (%s, %u bytes) nMessageSize > MAX_SIZE\n", GetCommand().c_str(), nMessageSize); + LogPrintf("CMessageHeader::IsValid() : (%s, %u bytes) nMessageSize > MAX_SIZE\n", GetCommand().c_str(), nMessageSize); return false; } @@ -146,6 +146,6 @@ std::string CInv::ToString() const void CInv::print() const { - printf("CInv(%s)\n", ToString().c_str()); + LogPrintf("CInv(%s)\n", ToString().c_str()); } |