最終更新:2016-07-06 (水) 14:19:54 (2851d)
LOG_NDEBUG
Top / LOG_NDEBUG
0にするとALOGVも出力されるようになる
AOSP/system/core/include/cutils/log.h
- Normally we strip ALOGV (VERBOSE messages) from release builds.
- You can modify this (for example with "#define LOG_NDEBUG 0" at the top of your source file) to change that behavior.
#ifndef LOG_NDEBUG #ifdef NDEBUG #define LOG_NDEBUG 1 #else #define LOG_NDEBUG 0 #endif #endif /* * Simplified macro to send a verbose log message using the current LOG_TAG. */ #ifndef ALOGV #if LOG_NDEBUG #define ALOGV(...) ((void)0) #else #define ALOGV(...) ((void)ALOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__)) #endif // Temporary measure for code still using old LOG macros. #ifndef LOGV #define LOGV ALOGV #endif #endif
フォルダ単位で指定
- LOCAL_CFLAGS += -DLOG_NDEBUG=0