• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <android/log.h>
2 #define ALOG(priority, tag, ...) \
3             __android_log_print(ANDROID_##priority, tag, __VA_ARGS__)
4 #define ALOGD(...) \
5             __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
6 #define ALOGE(...) \
7             __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
8 
9 #define __ALOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
10 #if LOG_NDEBUG
11 #define ALOGV(...) do { if (0) { __ALOGV(__VA_ARGS__); } } while (0)
12 #else
13 #define ALOGV(...) __ALOGV(__VA_ARGS__)
14 #endif
15