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/leveldb.h | |
parent | e51321fb75f00194425e5ecc8ad77fd6762ec221 (diff) |
Replace printf with LogPrintf / LogPrint
Diffstat (limited to 'src/leveldb.h')
-rw-r--r-- | src/leveldb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leveldb.h b/src/leveldb.h index 79262edbb5..7daddeb493 100644 --- a/src/leveldb.h +++ b/src/leveldb.h @@ -5,6 +5,7 @@ #define BITCOIN_LEVELDB_H #include "serialize.h" +#include "util.h" #include <leveldb/db.h> #include <leveldb/write_batch.h> @@ -91,7 +92,7 @@ public: if (!status.ok()) { if (status.IsNotFound()) return false; - printf("LevelDB read failure: %s\n", status.ToString().c_str()); + LogPrintf("LevelDB read failure: %s\n", status.ToString().c_str()); HandleError(status); } try { @@ -120,7 +121,7 @@ public: if (!status.ok()) { if (status.IsNotFound()) return false; - printf("LevelDB read failure: %s\n", status.ToString().c_str()); + LogPrintf("LevelDB read failure: %s\n", status.ToString().c_str()); HandleError(status); } return true; |