From 8aeb6e244a484305428ffbbc4be64d51e9bccdaa Mon Sep 17 00:00:00 2001 From: Steve Block Date: Fri, 6 Jan 2012 14:13:42 +0000 Subject: Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) Change-Id: I52fce957db06c281e2618daa4e2ecba19974f2eb --- include/cutils/log.h | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'include/cutils') diff --git a/include/cutils/log.h b/include/cutils/log.h index 4e6a57d4..c7543fbc 100644 --- a/include/cutils/log.h +++ b/include/cutils/log.h @@ -171,17 +171,23 @@ extern "C" { /* * Simplified macro to send an error log message using the current LOG_TAG. */ +#ifndef ALOGE +#define ALOGE(...) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) +// Temporary measure for code still using old LOG macros. #ifndef LOGE -#define LOGE(...) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) -#define ALOGE LOGE +#define LOGE ALOGE +#endif #endif -#ifndef LOGE_IF -#define LOGE_IF(cond, ...) \ +#ifndef ALOGE_IF +#define ALOGE_IF(cond, ...) \ ( (CONDITION(cond)) \ ? ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__)) \ : (void)0 ) -#define ALOGE_IF LOGE_IF +// Temporary measure for code still using old LOG macros. +#ifndef LOGE_IF +#define LOGE_IF ALOGE_IF +#endif #endif // --------------------------------------------------------------------- @@ -242,9 +248,12 @@ extern "C" { * Conditional based on whether the current LOG_TAG is enabled at * error priority. */ +#ifndef IF_ALOGE +#define IF_ALOGE() IF_ALOG(LOG_ERROR, LOG_TAG) +// Temporary measure for code still using old LOG macros. #ifndef IF_LOGE -#define IF_LOGE() IF_ALOG(LOG_ERROR, LOG_TAG) -#define IF_ALOGE IF_LOGE +#define IF_LOGE IF_ALOGE +#endif #endif -- cgit v1.2.3