diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-10-15 05:55:53 -0700 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-10-15 05:55:53 -0700 |
commit | f12c09a45b42b6d47515fe8ff7dd39306f397b73 (patch) | |
tree | 49e5b313910e4c2a4de92cb870113af5381b13d5 | |
parent | f0c25cf6ecb226d2a82d04d73af44ca6bc0f3efa (diff) | |
parent | 7dea6345e13f2289392bcf44f22e795afbc2a06d (diff) | |
download | bitcoin-f12c09a45b42b6d47515fe8ff7dd39306f397b73.tar.xz |
Merge pull request #3093 from Diapolo/printf_format
replace %zu with %"PRIszu" macro to prevent compiler warnings
-rw-r--r-- | src/main.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp index 732a828524..477bc74fae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3905,13 +3905,13 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) } if (!(sProblem.empty())) { - LogPrint("net", "pong %s %s: %s, %"PRI64x" expected, %"PRI64x" received, %zu bytes\n" - , pfrom->addr.ToString().c_str() - , pfrom->strSubVer.c_str() - , sProblem.c_str() - , pfrom->nPingNonceSent - , nonce - , nAvail); + LogPrint("net", "pong %s %s: %s, %"PRI64x" expected, %"PRI64x" received, %"PRIszu" bytes\n", + pfrom->addr.ToString().c_str(), + pfrom->strSubVer.c_str(), + sProblem.c_str(), + pfrom->nPingNonceSent, + nonce, + nAvail); } if (bPingFinished) { pfrom->nPingNonceSent = 0; @@ -4017,7 +4017,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) bool ProcessMessages(CNode* pfrom) { //if (fDebug) - // LogPrintf("ProcessMessages(%zu messages)\n", pfrom->vRecvMsg.size()); + // LogPrintf("ProcessMessages(%"PRIszu" messages)\n", pfrom->vRecvMsg.size()); // // Message format @@ -4042,7 +4042,7 @@ bool ProcessMessages(CNode* pfrom) CNetMessage& msg = *it; //if (fDebug) - // LogPrintf("ProcessMessages(message %u msgsz, %zu bytes, complete:%s)\n", + // LogPrintf("ProcessMessages(message %u msgsz, %"PRIszu" bytes, complete:%s)\n", // msg.hdr.nMessageSize, msg.vRecv.size(), // msg.complete() ? "Y" : "N"); |