diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-09-18 20:38:08 +1000 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-09-18 20:39:25 +1000 |
commit | 881a85a22d76c875f519cd54388a419ec6f70857 (patch) | |
tree | 3f71daa59ac35c5dda44747c0b62dbc8602d8f1c /src/script.cpp | |
parent | e51321fb75f00194425e5ecc8ad77fd6762ec221 (diff) |
Replace printf with LogPrintf / LogPrint
Diffstat (limited to 'src/script.cpp')
-rw-r--r-- | src/script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.cpp b/src/script.cpp index 3c3e9cf3bf..0fe2953548 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); |