Fix some bad logging in dex2oat
Change-Id: Ia193f4e58f1426f509f8559aaf67689b177c2f41
diff --git a/src/dex2oat.cc b/src/dex2oat.cc
index cce9276..ed7bd88 100644
--- a/src/dex2oat.cc
+++ b/src/dex2oat.cc
@@ -799,7 +799,7 @@
if (android_root.empty()) {
const char* android_root_env_var = getenv("ANDROID_ROOT");
if (android_root_env_var == NULL) {
- Usage("--android_root unspecified and ANDROID_ROOT not set");
+ Usage("--android-root unspecified and ANDROID_ROOT not set");
}
android_root += android_root_env_var;
}
@@ -1074,7 +1074,7 @@
compiler->StripElf(oat_file.get());
// We wrote the oat file successfully, and want to keep it.
- LOG(INFO) << "Oat file written successfully (stripped): " << oat_stripped;
+ LOG(INFO) << "Oat file written successfully (stripped): " << oat_location;
return EXIT_SUCCESS;
}