Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)
Change-Id: I1de629b4632a4b3187ca1a28d6416daccd35f924
This commit is contained in:
committed by
Jean-Baptiste Queru
parent
a51f0e707f
commit
c6aacce371
@ -295,7 +295,7 @@ status_t AndroidRuntime::callMain(const char* className,
|
||||
|
||||
methodId = env->GetStaticMethodID(clazz, "main", "([Ljava/lang/String;)V");
|
||||
if (methodId == NULL) {
|
||||
LOGE("ERROR: could not find method %s.main(String[])\n", className);
|
||||
ALOGE("ERROR: could not find method %s.main(String[])\n", className);
|
||||
return UNKNOWN_ERROR;
|
||||
}
|
||||
|
||||
@ -766,7 +766,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
|
||||
* JNI calls.
|
||||
*/
|
||||
if (JNI_CreateJavaVM(pJavaVM, pEnv, &initArgs) < 0) {
|
||||
LOGE("JNI_CreateJavaVM failed\n");
|
||||
ALOGE("JNI_CreateJavaVM failed\n");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
@ -838,7 +838,7 @@ void AndroidRuntime::start(const char* className, const char* options)
|
||||
* Register android functions.
|
||||
*/
|
||||
if (startReg(env) < 0) {
|
||||
LOGE("Unable to register all android natives\n");
|
||||
ALOGE("Unable to register all android natives\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -869,13 +869,13 @@ void AndroidRuntime::start(const char* className, const char* options)
|
||||
char* slashClassName = toSlashClassName(className);
|
||||
jclass startClass = env->FindClass(slashClassName);
|
||||
if (startClass == NULL) {
|
||||
LOGE("JavaVM unable to locate class '%s'\n", slashClassName);
|
||||
ALOGE("JavaVM unable to locate class '%s'\n", slashClassName);
|
||||
/* keep going */
|
||||
} else {
|
||||
jmethodID startMeth = env->GetStaticMethodID(startClass, "main",
|
||||
"([Ljava/lang/String;)V");
|
||||
if (startMeth == NULL) {
|
||||
LOGE("JavaVM unable to find main() in '%s'\n", className);
|
||||
ALOGE("JavaVM unable to find main() in '%s'\n", className);
|
||||
/* keep going */
|
||||
} else {
|
||||
env->CallStaticVoidMethod(startClass, startMeth, strArray);
|
||||
@ -961,7 +961,7 @@ static int javaDetachThread(void)
|
||||
|
||||
result = vm->DetachCurrentThread();
|
||||
if (result != JNI_OK)
|
||||
LOGE("ERROR: thread detach failed\n");
|
||||
ALOGE("ERROR: thread detach failed\n");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user