Minor tweaks to JNI logging.
Reduced a LOGI to LOGD, normalized format, added a similar message for a
field ID lookup that was failing (due to a bad flash, as it turns out).
diff --git a/vm/Jni.c b/vm/Jni.c
index 9871d4e..21ff19f 100644
--- a/vm/Jni.c
+++ b/vm/Jni.c
@@ -1708,8 +1708,8 @@
meth = NULL;
}
if (meth == NULL) {
- LOGI("Method not found: '%s' '%s' in %s\n",
- name, sig, clazz->descriptor);
+ LOGD("GetMethodID: method not found: %s.%s:%s\n",
+ clazz->descriptor, name, sig);
dvmThrowException("Ljava/lang/NoSuchMethodError;", name);
}
@@ -1744,8 +1744,11 @@
id = NULL;
} else {
id = (jfieldID) dvmFindInstanceFieldHier(clazz, name, sig);
- if (id == NULL)
+ if (id == NULL) {
+ LOGD("GetFieldID: unable to find field %s.%s:%s\n",
+ clazz->descriptor, name, sig);
dvmThrowException("Ljava/lang/NoSuchFieldError;", name);
+ }
}
JNI_EXIT();
return id;