From 88ec7f45c0e2c3f659048fbe4b1dc78730fdaea8 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 5 Nov 2014 10:18:32 -0800 Subject: ART: Refactor dex2oat Take the huge dex2oat main function apart. Move to ScopedLogging. Bug: 18276913 Bug: 17444504 Change-Id: Iab3d7437d60508088cb16bf33da0c5defbf7ae03 --- compiler/image_writer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/image_writer.cc') 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 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; } -- cgit v1.2.3