Update log statements

Use filesystem path conversion to string() instead of c_str().
Windows may otherwise output an address.
This commit is contained in:
warptangent 2015-05-08 11:32:20 -07:00
parent 48926d0eeb
commit 71af04669c
No known key found for this signature in database
GPG key ID: 0E490BEBFBE4E92D
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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");
}

View file

@ -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