Merge "libmemunreachable: turn off MEM_ALOGV messages"
am: 52998574d1
Change-Id: Ifaa83f30d115975b21e354c467f27a6839e82254
This commit is contained in:
commit
771be4c2ad
1 changed files with 12 additions and 1 deletions
|
|
@ -26,7 +26,18 @@
|
|||
#define MEM_ALOGE(...) async_safe_format_log(ANDROID_LOG_ERROR, LOG_TAG, ##__VA_ARGS__)
|
||||
#define MEM_ALOGW(...) async_safe_format_log(ANDROID_LOG_WARN, LOG_TAG, ##__VA_ARGS__)
|
||||
#define MEM_ALOGI(...) async_safe_format_log(ANDROID_LOG_INFO, LOG_TAG, ##__VA_ARGS__)
|
||||
#define MEM_ALOGV(...) async_safe_format_log(ANDROID_LOG_VERBOSE, LOG_TAG, ##__VA_ARGS__)
|
||||
#define MEM_ALOGV_IMPL(...) async_safe_format_log(ANDROID_LOG_VERBOSE, LOG_TAG, ##__VA_ARGS__)
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define MEM_ALOGV(...) \
|
||||
do { \
|
||||
if (0) { \
|
||||
MEM_ALOGV_IMPL(__VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
#else
|
||||
#define MEM_ALOGV(...) MEM_ALOGV_IMPL(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#define MEM_LOG_ALWAYS_FATAL(...) async_safe_fatal(__VA_ARGS__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue