aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--src/blockchain_converter/fake_core.h2
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/blockchain_converter/fake_core.h b/src/blockchain_converter/fake_core.h
index f82b05d04..79fb51842 100644
--- a/src/blockchain_converter/fake_core.h
+++ b/src/blockchain_converter/fake_core.h
@@ -62,7 +62,7 @@ struct fake_core_lmdb
folder /= db->get_db_name();
- LOG_PRINT_L0("Loading blockchain from folder " << folder.c_str() << " ...");
+ LOG_PRINT_L0("Loading blockchain from folder " << folder.string() << " ...");
const std::string filename = folder.string();
try
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");
}
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index a5517e011..2037a8c28 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -237,7 +237,7 @@ namespace cryptonote
folder /= db->get_db_name();
- LOG_PRINT_L0("Loading blockchain from folder " << folder.c_str() << " ...");
+ LOG_PRINT_L0("Loading blockchain from folder " << folder.string() << " ...");
const std::string filename = folder.string();
try