aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-01-16 15:52:37 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-01-23 16:05:00 +0100
commitb77dfdc9e36e308aa806d63aa3b5628971789d5a (patch)
tree555894b6364e76c4a5c3d7962f6991de1f5588f8 /src/main.cpp
parent53e9d3aa44e24fecd2d58984baff3cb4af23c12e (diff)
downloadbitcoin-b77dfdc9e36e308aa806d63aa3b5628971789d5a.tar.xz
Typesafe strprintf/error/LogPrint functions
Switch to tinyformat-based formatting. Tinyformat is a typesafe drop-in replacement for C99 printf functions: https://github.com/c42f/tinyformat
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3ff1fd3a91..1f16152785 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1884,7 +1884,7 @@ bool SetBestChain(CValidationState &state, CBlockIndex* pindexNew)
pindex = pindex->pprev;
}
if (nUpgraded > 0)
- LogPrintf("SetBestChain: %d of last 100 blocks above version %d\n", nUpgraded, CBlock::CURRENT_VERSION);
+ LogPrintf("SetBestChain: %d of last 100 blocks above version %d\n", nUpgraded, (int)CBlock::CURRENT_VERSION);
if (nUpgraded > 100/2)
// strMiscWarning is read by GetWarnings(), called by Qt and the JSON-RPC code to warn the user:
strMiscWarning = _("Warning: This version is obsolete, upgrade required!");