aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.cpp
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-05-08 11:32:20 -0700
committerwarptangent <warptangent@inbox.com>2015-05-08 14:12:06 -0700
commit71af04669c418e6312320bf098dd9928854f4d00 (patch)
tree4e4c4a8c821511fd28d87d398badd86b956f4df4 /src/blockchain_db/lmdb/db_lmdb.cpp
parentFix incompatibility with blockchain exporter when source is LMDB (diff)
downloadmonero-71af04669c418e6312320bf098dd9928854f4d00.tar.xz
Update log statements
Use filesystem path conversion to string() instead of c_str(). Windows may otherwise output an address.
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.cpp')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 8e09dfab2..5126db400 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -659,7 +659,7 @@ void BlockchainLMDB::open(const std::string& filename, const int mdb_flags)
if (boost::filesystem::exists(old_files / "data.mdb") ||
boost::filesystem::exists(old_files / "lock.mdb"))
{
- LOG_PRINT_L0("Found existing LMDB files in " << old_files.c_str());
+ LOG_PRINT_L0("Found existing LMDB files in " << old_files.string());
LOG_PRINT_L0("Move data.mdb and/or lock.mdb to " << filename << ", or delete them, and then restart");
throw DB_ERROR("Database could not be opened");
}