These %lli/%li formats are platform-dependent

This commit is contained in:
Jonathan "Duke" Leto
2018-08-06 22:50:38 +02:00
parent 6358342934
commit 25709e3078

View File

@@ -430,7 +430,7 @@ extern UniValue CBlockTreeDB::Snapshot(int top)
}; };
int64_t startingHeight = chainActive.Height(); int64_t startingHeight = chainActive.Height();
fprintf(stderr, "Starting snapshot at height %lli\n", startingHeight); //fprintf(stderr, "Starting snapshot at height %lli\n", startingHeight);
for (iter->SeekToLast(); iter->Valid(); iter->Prev()) for (iter->SeekToLast(); iter->Valid(); iter->Prev())
{ {
boost::this_thread::interruption_point(); boost::this_thread::interruption_point();
@@ -487,7 +487,7 @@ extern UniValue CBlockTreeDB::Snapshot(int top)
} }
UniValue addresses(UniValue::VARR); UniValue addresses(UniValue::VARR);
fprintf(stderr, "total=%f, totalAddresses=%lli, utxos=%lli, ignored=%lli\n", (double) total / COIN, totalAddresses, utxos, ignoredAddresses); //fprintf(stderr, "total=%f, totalAddresses=%li, utxos=%li, ignored=%li\n", (double) total / COIN, totalAddresses, utxos, ignoredAddresses);
for (std::pair<std::string, CAmount> element : addressAmounts) { for (std::pair<std::string, CAmount> element : addressAmounts) {
vaddr.push_back( make_pair(element.second, element.first) ); vaddr.push_back( make_pair(element.second, element.first) );