diff options
| -rw-r--r-- | jni/tunflags.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jni/tunflags.cpp b/jni/tunflags.cpp index c7fe3b3..a5a48ff 100644 --- a/jni/tunflags.cpp +++ b/jni/tunflags.cpp @@ -19,7 +19,9 @@ using zygisk::Api; using zygisk::ServerSpecializeArgs; -#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, "WireGuard/TunFlags", __VA_ARGS__) +#define LOG_TAG "WireGuard/TunFlags" +#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) +#define ALOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) static bool is_wireguard(JNIEnv *env, jobject vpn_obj) { @@ -55,7 +57,7 @@ static jint create(JNIEnv *env, jobject thiz, jint mtu) if (!is_wireguard(env, thiz)) return orig_create(env, thiz, mtu); - ALOGE("Using hooked function to create IFF_VNET_HDR tun device"); + ALOGI("Using hooked function to create IFF_VNET_HDR tun device"); int tun = open("/dev/tun", O_RDWR | O_NONBLOCK | O_CLOEXEC); if (tun < 0) { |
