diff --git a/module/src/main/cpp/log.h b/module/src/main/cpp/log.h index 5571db0..cf8db70 100644 --- a/module/src/main/cpp/log.h +++ b/module/src/main/cpp/log.h @@ -12,5 +12,5 @@ #define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__) #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) - +#define PLOGE(fmt, args...) LOGE(fmt " failed with %d: %s", ##args, errno, strerror(errno)) #endif //ZYGISK_IL2CPPDUMPER_LOG_H diff --git a/module/src/main/cpp/newriruhide.cpp b/module/src/main/cpp/newriruhide.cpp index 99a6e77..f5b491b 100644 --- a/module/src/main/cpp/newriruhide.cpp +++ b/module/src/main/cpp/newriruhide.cpp @@ -43,7 +43,7 @@ static int get_prot(const procmaps_struct *procstruct) { __typeof__(exp) _rc; \ _rc = (exp); \ if (_rc == failure_value) { \ - LOGE(#exp); \ + PLOGE(#exp); \ return 1; \ } \ _rc; })