diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/cutils/log.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/include/cutils/log.h b/include/cutils/log.h index 42d738296..93c01e0d2 100644 --- a/include/cutils/log.h +++ b/include/cutils/log.h @@ -77,7 +77,7 @@ extern "C" { #if LOG_NDEBUG #define LOGV(...) ((void)0) #else -#define LOGV(...) ((void)LOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__)) +#define LOGV(...) ((void)ALOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__)) #endif #endif @@ -89,7 +89,7 @@ extern "C" { #else #define LOGV_IF(cond, ...) \ ( (CONDITION(cond)) \ - ? ((void)LOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__)) \ + ? ((void)ALOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) #endif #endif @@ -98,13 +98,13 @@ extern "C" { * Simplified macro to send a debug log message using the current LOG_TAG. */ #ifndef LOGD -#define LOGD(...) ((void)LOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) +#define LOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) #endif #ifndef LOGD_IF #define LOGD_IF(cond, ...) \ ( (CONDITION(cond)) \ - ? ((void)LOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \ + ? ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) #endif @@ -112,13 +112,13 @@ extern "C" { * Simplified macro to send an info log message using the current LOG_TAG. */ #ifndef LOGI -#define LOGI(...) ((void)LOG(LOG_INFO, LOG_TAG, __VA_ARGS__)) +#define LOGI(...) ((void)ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__)) #endif #ifndef LOGI_IF #define LOGI_IF(cond, ...) \ ( (CONDITION(cond)) \ - ? ((void)LOG(LOG_INFO, LOG_TAG, __VA_ARGS__)) \ + ? ((void)ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) #endif @@ -126,13 +126,13 @@ extern "C" { * Simplified macro to send a warning log message using the current LOG_TAG. */ #ifndef LOGW -#define LOGW(...) ((void)LOG(LOG_WARN, LOG_TAG, __VA_ARGS__)) +#define LOGW(...) ((void)ALOG(LOG_WARN, LOG_TAG, __VA_ARGS__)) #endif #ifndef LOGW_IF #define LOGW_IF(cond, ...) \ ( (CONDITION(cond)) \ - ? ((void)LOG(LOG_WARN, LOG_TAG, __VA_ARGS__)) \ + ? ((void)ALOG(LOG_WARN, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) #endif @@ -140,13 +140,13 @@ extern "C" { * Simplified macro to send an error log message using the current LOG_TAG. */ #ifndef LOGE -#define LOGE(...) ((void)LOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) +#define LOGE(...) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) #endif #ifndef LOGE_IF #define LOGE_IF(cond, ...) \ ( (CONDITION(cond)) \ - ? ((void)LOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) \ + ? ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) #endif @@ -160,7 +160,7 @@ extern "C" { #if LOG_NDEBUG #define IF_LOGV() if (false) #else -#define IF_LOGV() IF_LOG(LOG_VERBOSE, LOG_TAG) +#define IF_LOGV() IF_ALOG(LOG_VERBOSE, LOG_TAG) #endif #endif @@ -169,7 +169,7 @@ extern "C" { * debug priority. */ #ifndef IF_LOGD -#define IF_LOGD() IF_LOG(LOG_DEBUG, LOG_TAG) +#define IF_LOGD() IF_ALOG(LOG_DEBUG, LOG_TAG) #endif /* @@ -177,7 +177,7 @@ extern "C" { * info priority. */ #ifndef IF_LOGI -#define IF_LOGI() IF_LOG(LOG_INFO, LOG_TAG) +#define IF_LOGI() IF_ALOG(LOG_INFO, LOG_TAG) #endif /* @@ -185,7 +185,7 @@ extern "C" { * warn priority. */ #ifndef IF_LOGW -#define IF_LOGW() IF_LOG(LOG_WARN, LOG_TAG) +#define IF_LOGW() IF_ALOG(LOG_WARN, LOG_TAG) #endif /* @@ -193,7 +193,7 @@ extern "C" { * error priority. */ #ifndef IF_LOGE -#define IF_LOGE() IF_LOG(LOG_ERROR, LOG_TAG) +#define IF_LOGE() IF_ALOG(LOG_ERROR, LOG_TAG) #endif @@ -340,12 +340,12 @@ extern "C" { * Basic log message macro. * * Example: - * LOG(LOG_WARN, NULL, "Failed with error %d", errno); + * ALOG(LOG_WARN, NULL, "Failed with error %d", errno); * * The second argument may be NULL or "" to indicate the "global" tag. */ -#ifndef LOG -#define LOG(priority, tag, ...) \ +#ifndef ALOG +#define ALOG(priority, tag, ...) \ LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__) #endif @@ -368,8 +368,8 @@ extern "C" { /* * Conditional given a desired logging priority and tag. */ -#ifndef IF_LOG -#define IF_LOG(priority, tag) \ +#ifndef IF_ALOG +#define IF_ALOG(priority, tag) \ if (android_testLog(ANDROID_##priority, tag)) #endif |