summaryrefslogtreecommitdiff
path: root/app/jni/jniglue.c
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-01-30 12:50:51 +0100
committerParménides GV <parmegv@sdf.org>2015-01-30 12:50:51 +0100
commit1be9cbb303507a32b3d0c0345ef63e33dd126326 (patch)
treeb36305aa784b3aefe1c251e01a70de6c18c491bf /app/jni/jniglue.c
parenta3daa40aaa1a0de39ed6fd6bc7684b24d7787708 (diff)
parent6b53c24fd638dc8aaf35279c7ecadaea003f2b91 (diff)
Merge branch 'feature/f-droid-verify-support-#6165' into develop
Diffstat (limited to 'app/jni/jniglue.c')
-rw-r--r--app/jni/jniglue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/jni/jniglue.c b/app/jni/jniglue.c
index d446f78c..c2dd9f1e 100644
--- a/app/jni/jniglue.c
+++ b/app/jni/jniglue.c
@@ -7,14 +7,18 @@
#include "jniglue.h"
jint JNI_OnLoad(JavaVM *vm, void *reserved) {
+#ifndef NDEBUG
__android_log_write(ANDROID_LOG_DEBUG,"openvpn", "Loading openvpn native library $id$ compiled on " __DATE__ " " __TIME__ );
+#endif
return JNI_VERSION_1_2;
}
void android_openvpn_log(int level,const char* prefix,const char* prefix_sep,const char* m1)
{
+#ifndef NDEBUG
__android_log_print(ANDROID_LOG_DEBUG,"openvpn","%s%s%s",prefix,prefix_sep,m1);
+#endif
}
void Java_de_blinkt_openvpn_core_NativeUtils_jniclose(JNIEnv *env,jclass jo, jint fd) {