manager: Strip JNI debug logs on release build (#2732)
Add conditional logging to jni.c for debug builds.
This commit is contained in:
@@ -61,6 +61,10 @@
|
|||||||
GetEnvironment()->NewObject(env, cls, constructor, __VA_ARGS__); \
|
GetEnvironment()->NewObject(env, cls, constructor, __VA_ARGS__); \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
#ifdef NDEBUG
|
||||||
|
#define LogDebug(...) (void)0
|
||||||
|
#else
|
||||||
#define LogDebug(...) __android_log_print(ANDROID_LOG_DEBUG, "KernelSU", __VA_ARGS__)
|
#define LogDebug(...) __android_log_print(ANDROID_LOG_DEBUG, "KernelSU", __VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user