@@ -12,5 +12,5 @@
|
|||||||
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
#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 LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
||||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, 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
|
#endif //ZYGISK_IL2CPPDUMPER_LOG_H
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ static int get_prot(const procmaps_struct *procstruct) {
|
|||||||
__typeof__(exp) _rc; \
|
__typeof__(exp) _rc; \
|
||||||
_rc = (exp); \
|
_rc = (exp); \
|
||||||
if (_rc == failure_value) { \
|
if (_rc == failure_value) { \
|
||||||
LOGE(#exp); \
|
PLOGE(#exp); \
|
||||||
return 1; \
|
return 1; \
|
||||||
} \
|
} \
|
||||||
_rc; })
|
_rc; })
|
||||||
|
|||||||
Reference in New Issue
Block a user