diff options
| -rw-r--r-- | src/oatdump.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/oatdump.cc b/src/oatdump.cc index 7333bc3b5c..4b492aaa01 100644 --- a/src/oatdump.cc +++ b/src/oatdump.cc @@ -521,18 +521,22 @@ class ImageDumper { } os_ << "\n"; + os_ << "OAT LOCATION:\n" << std::flush; ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); Object* oat_location_object = image_header_.GetImageRoot(ImageHeader::kOatLocation); std::string oat_location(oat_location_object->AsString()->ToModifiedUtf8()); + os_ << oat_location; if (!host_prefix_.empty()) { oat_location = host_prefix_ + oat_location; os_ << " (" << oat_location << ")"; } + os_ << "\n"; const OatFile* oat_file = class_linker->FindOatFileFromOatLocation(oat_location); if (oat_file == NULL) { - os_ << "OAT FILE NOT FOUND: " << oat_location << std::endl << std::flush; + os_ << "NOT FOUND\n"; return; } + os_ << "\n"; stats_.oat_file_bytes = oat_file->Size(); @@ -556,9 +560,6 @@ class ImageDumper { os_ << std::flush; - os_ << "OAT LOCATION:\n" << std::flush; - os_ << oat_location; - os_ << "\n"; oat_dumper_->Dump(os_); } |