Browse Source

Bugfix: %-12I64d is not valid and causes the parameter to be skipped, use %12"PRI64d" instead

miguelfreitas
Luke Dashjr 13 years ago committed by Gregory Maxwell
parent
commit
82e6b92b0a
  1. 2
      src/main.cpp
  2. 2
      src/walletdb.cpp

2
src/main.cpp

@ -3188,7 +3188,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
dPriority += (double)nValueIn * nConf; dPriority += (double)nValueIn * nConf;
if (fDebug && GetBoolArg("-printpriority")) if (fDebug && GetBoolArg("-printpriority"))
printf("priority nValueIn=%-12I64d nConf=%-5d dPriority=%-20.1f\n", nValueIn, nConf, dPriority); printf("priority nValueIn=%-12"PRI64d" nConf=%-5d dPriority=%-20.1f\n", nValueIn, nConf, dPriority);
} }
// Priority is sum(valuein * age) / txsize // Priority is sum(valuein * age) / txsize

2
src/walletdb.cpp

@ -189,7 +189,7 @@ int CWalletDB::LoadWallet(CWallet* pwallet)
//// debug print //// debug print
//printf("LoadWallet %s\n", wtx.GetHash().ToString().c_str()); //printf("LoadWallet %s\n", wtx.GetHash().ToString().c_str());
//printf(" %12I64d %s %s %s\n", //printf(" %12"PRI64d" %s %s %s\n",
// wtx.vout[0].nValue, // wtx.vout[0].nValue,
// DateTimeStrFormat("%x %H:%M:%S", wtx.GetBlockTime()).c_str(), // DateTimeStrFormat("%x %H:%M:%S", wtx.GetBlockTime()).c_str(),
// wtx.hashBlock.ToString().substr(0,20).c_str(), // wtx.hashBlock.ToString().substr(0,20).c_str(),

Loading…
Cancel
Save