changeset 2970:95b6e23d3f2a draft

Bugfix: %-12I64d is not valid and causes the parameter to be skipped, use %12"PRI64d" instead
author Luke Dashjr <luke-jr+git@utopios.org>
date Sat, 05 May 2012 02:41:43 +0000
parents 6d9afd854c97
children f5882d8faae9
files src/main.cpp src/walletdb.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3188,7 +3188,7 @@
                 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
--- a/src/walletdb.cpp
+++ b/src/walletdb.cpp
@@ -189,7 +189,7 @@
 
                 //// 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(),