From: Luke Dashjr Date: Sat, 5 May 2012 02:41:43 +0000 (+0000) Subject: Bugfix: %-12I64d is not valid and causes the parameter to be skipped, use %12"PRI64d... X-Git-Tag: v0.4.0-unstable~129^2~1^2~17 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=d41f22cb7675e8d45160511c3f45e51ba5dbbd00 Bugfix: %-12I64d is not valid and causes the parameter to be skipped, use %12"PRI64d" instead --- diff --git a/src/main.cpp b/src/main.cpp index 427e435..c1c57d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3188,7 +3188,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey) dPriority += (double)nValueIn * nConf; 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 diff --git a/src/walletdb.cpp b/src/walletdb.cpp index 709ecac..e5d5728 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -189,7 +189,7 @@ int CWalletDB::LoadWallet(CWallet* pwallet) //// debug print //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, // DateTimeStrFormat("%x %H:%M:%S", wtx.GetBlockTime()).c_str(), // wtx.hashBlock.ToString().substr(0,20).c_str(),