aboutsummaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2013-09-18 04:00:03 -0700
committerJeff Garzik <[email protected]>2013-09-18 04:00:03 -0700
commite0d6dd11e3d9246b510a78118497d81b6d94ee14 (patch)
tree3f71daa59ac35c5dda44747c0b62dbc8602d8f1c /src/script.cpp
parentMerge pull request #2985 from theuni/included-tests (diff)
parentReplace printf with LogPrintf / LogPrint (diff)
downloaddiscoin-e0d6dd11e3d9246b510a78118497d81b6d94ee14.tar.xz
discoin-e0d6dd11e3d9246b510a78118497d81b6d94ee14.zip
Merge pull request #3009 from gavinandresen/LogPrint
Remove #define printf, replace OutputDebugStringf with LogPrint(f)
Diffstat (limited to 'src/script.cpp')
-rw-r--r--src/script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.cpp b/src/script.cpp
index 3c3e9cf3b..0fe295354 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -977,7 +977,7 @@ uint256 SignatureHash(CScript scriptCode, const CTransaction& txTo, unsigned int
{
if (nIn >= txTo.vin.size())
{
- printf("ERROR: SignatureHash() : nIn=%d out of range\n", nIn);
+ LogPrintf("ERROR: SignatureHash() : nIn=%d out of range\n", nIn);
return 1;
}
CTransaction txTmp(txTo);
@@ -1008,7 +1008,7 @@ uint256 SignatureHash(CScript scriptCode, const CTransaction& txTo, unsigned int
unsigned int nOut = nIn;
if (nOut >= txTmp.vout.size())
{
- printf("ERROR: SignatureHash() : nOut=%d out of range\n", nOut);
+ LogPrintf("ERROR: SignatureHash() : nOut=%d out of range\n", nOut);
return 1;
}
txTmp.vout.resize(nOut+1);