diff --git a/widget/gonk/HwcComposer2D.cpp b/widget/gonk/HwcComposer2D.cpp index 9b7e56dbaf9..d8cb4cf330c 100644 --- a/widget/gonk/HwcComposer2D.cpp +++ b/widget/gonk/HwcComposer2D.cpp @@ -33,12 +33,19 @@ #define LOG_TAG "HWComposer" -#if (LOG_NDEBUG == 0) +/* + * By default the debug message of hwcomposer (LOG_DEBUG level) are undefined, + * but can be enabled by uncommenting HWC_DEBUG below. + */ +//#define HWC_DEBUG + +#ifdef HWC_DEBUG #define LOGD(args...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, ## args) #else #define LOGD(args...) ((void)0) #endif +#define LOGI(args...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, ## args) #define LOGE(args...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, ## args) #define LAYER_COUNT_INCREMENTS 5 @@ -91,7 +98,7 @@ HwcComposer2D* HwcComposer2D::GetInstance() { if (!sInstance) { - LOGD("Creating new instance"); + LOGI("Creating new instance"); sInstance = new HwcComposer2D(); } return sInstance;