diff options
author | Steve Block <steveblock@google.com> | 2011-12-22 15:00:35 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-12-29 11:58:24 +0000 |
commit | e7e7fac974617a5376f05d7a638d2a53094d3ac5 (patch) | |
tree | 755905d89fa8a03e83de8e079df9a9c6f17e595e | |
parent | 1b251bde764bcf3b689ee1942e005a821bd06d17 (diff) | |
download | system_core-e7e7fac974617a5376f05d7a638d2a53094d3ac5.zip system_core-e7e7fac974617a5376f05d7a638d2a53094d3ac5.tar.gz system_core-e7e7fac974617a5376f05d7a638d2a53094d3ac5.tar.bz2 |
Add ALOG versions of LOGD, LOGI, LOGW and LOGE
These are now required by some projects.
Change-Id: I0d51c950178504474d803620a6cd1c9f084804b5
-rw-r--r-- | include/cutils/log.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/cutils/log.h b/include/cutils/log.h index 5a7c2e1..88224bb 100644 --- a/include/cutils/log.h +++ b/include/cutils/log.h @@ -101,6 +101,7 @@ extern "C" { */ #ifndef LOGD #define LOGD(...) ((void)LOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) +#define ALOGD LOGD #endif #ifndef LOGD_IF @@ -108,6 +109,7 @@ extern "C" { ( (CONDITION(cond)) \ ? ((void)LOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) +#define ALOGD_IF LOGD_IF #endif /* @@ -115,6 +117,7 @@ extern "C" { */ #ifndef LOGI #define LOGI(...) ((void)LOG(LOG_INFO, LOG_TAG, __VA_ARGS__)) +#define ALOGI LOGI #endif #ifndef LOGI_IF @@ -122,6 +125,7 @@ extern "C" { ( (CONDITION(cond)) \ ? ((void)LOG(LOG_INFO, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) +#define ALOGI_IF LOGI_IF #endif /* @@ -129,6 +133,7 @@ extern "C" { */ #ifndef LOGW #define LOGW(...) ((void)LOG(LOG_WARN, LOG_TAG, __VA_ARGS__)) +#define ALOGW LOGW #endif #ifndef LOGW_IF @@ -136,6 +141,7 @@ extern "C" { ( (CONDITION(cond)) \ ? ((void)LOG(LOG_WARN, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) +#define ALOGW_IF LOGW_IF #endif /* @@ -143,6 +149,7 @@ extern "C" { */ #ifndef LOGE #define LOGE(...) ((void)LOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) +#define ALOGE LOGE #endif #ifndef LOGE_IF @@ -150,6 +157,7 @@ extern "C" { ( (CONDITION(cond)) \ ? ((void)LOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) +#define ALOGE_IF LOGE_IF #endif // --------------------------------------------------------------------- @@ -173,6 +181,7 @@ extern "C" { */ #ifndef IF_LOGD #define IF_LOGD() IF_LOG(LOG_DEBUG, LOG_TAG) +#define IF_ALOGD IF_LOGD #endif /* @@ -181,6 +190,7 @@ extern "C" { */ #ifndef IF_LOGI #define IF_LOGI() IF_LOG(LOG_INFO, LOG_TAG) +#define IF_ALOGI IF_LOGI #endif /* @@ -189,6 +199,7 @@ extern "C" { */ #ifndef IF_LOGW #define IF_LOGW() IF_LOG(LOG_WARN, LOG_TAG) +#define IF_ALOGW IF_LOGW #endif /* @@ -197,6 +208,7 @@ extern "C" { */ #ifndef IF_LOGE #define IF_LOGE() IF_LOG(LOG_ERROR, LOG_TAG) +#define IF_ALOGE IF_LOGE #endif |