Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220
Also fix an occurrence of LOGW missed in an earlier change.
Bug: 5449033
Change-Id: I2e3b23839e6dcd09015d6402280e9300c75e3406
diff --git a/JNIHelp.cpp b/JNIHelp.cpp
index d4e4ff3..7c0b146 100644
--- a/JNIHelp.cpp
+++ b/JNIHelp.cpp
@@ -72,12 +72,12 @@
scoped_local_ref<jclass> c(env, findClass(env, className));
if (c.get() == NULL) {
- LOGE("Native registration unable to find class '%s', aborting", className);
+ ALOGE("Native registration unable to find class '%s', aborting", className);
abort();
}
if ((*env)->RegisterNatives(e, c.get(), gMethods, numMethods) < 0) {
- LOGE("RegisterNatives failed for '%s', aborting", className);
+ ALOGE("RegisterNatives failed for '%s', aborting", className);
abort();
}
@@ -220,13 +220,13 @@
scoped_local_ref<jclass> exceptionClass(env, findClass(env, className));
if (exceptionClass.get() == NULL) {
- LOGE("Unable to find exception class %s", className);
+ ALOGE("Unable to find exception class %s", className);
/* ClassNotFoundException now pending */
return -1;
}
if ((*env)->ThrowNew(e, exceptionClass.get(), msg) != JNI_OK) {
- LOGE("Failed throwing '%s' '%s'", className, msg);
+ ALOGE("Failed throwing '%s' '%s'", className, msg);
/* an exception, most likely OOM, will now be pending */
return -1;
}