Bug 915077 - Change the debug log level of HWC, r=nrc

This commit is contained in:
Peter Chang 2013-09-18 10:10:35 +08:00
parent 449cad53d5
commit f4049067a4

View File

@ -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;