summaryrefslogtreecommitdiffstats
path: root/compiler/image_writer.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-05 10:18:32 -0800
committerAndreas Gampe <agampe@google.com>2014-11-06 23:06:12 -0800
commit88ec7f45c0e2c3f659048fbe4b1dc78730fdaea8 (patch)
treefe5479ad8683d4f63344bdcb819642d07629c351 /compiler/image_writer.cc
parentb7ce2074ef43ff221cdec6ddba953f0b0c67447b (diff)
downloadandroid_art-88ec7f45c0e2c3f659048fbe4b1dc78730fdaea8.tar.gz
android_art-88ec7f45c0e2c3f659048fbe4b1dc78730fdaea8.tar.bz2
android_art-88ec7f45c0e2c3f659048fbe4b1dc78730fdaea8.zip
ART: Refactor dex2oat
Take the huge dex2oat main function apart. Move to ScopedLogging. Bug: 18276913 Bug: 17444504 Change-Id: Iab3d7437d60508088cb16bf33da0c5defbf7ae03
Diffstat (limited to 'compiler/image_writer.cc')
-rw-r--r--compiler/image_writer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/image_writer.cc b/compiler/image_writer.cc
index 2fd5a52745..6584d53b19 100644
--- a/compiler/image_writer.cc
+++ b/compiler/image_writer.cc
@@ -103,13 +103,13 @@ bool ImageWriter::Write(const std::string& image_filename,
std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename.c_str()));
if (oat_file.get() == NULL) {
- LOG(ERROR) << "Failed to open oat file " << oat_filename << " for " << oat_location;
+ PLOG(ERROR) << "Failed to open oat file " << oat_filename << " for " << oat_location;
return false;
}
std::string error_msg;
oat_file_ = OatFile::OpenReadable(oat_file.get(), oat_location, &error_msg);
if (oat_file_ == nullptr) {
- LOG(ERROR) << "Failed to open writable oat file " << oat_filename << " for " << oat_location
+ PLOG(ERROR) << "Failed to open writable oat file " << oat_filename << " for " << oat_location
<< ": " << error_msg;
return false;
}