From b4a2c135ece9ca93dca17a8e97a9d59d55672e7c Mon Sep 17 00:00:00 2001 From: Haegeun Park Date: Fri, 11 Oct 2013 00:52:11 -0700 Subject: [PATCH] [Title] Revert to use printf() for the urgent logs [Issue#] [Problem] [Cause] Dlogutil doesn't work clearly, and some logs missing... [Solution] - Now uses printf instead dlog when debug mode (COREGL_DEBUG is enabled) - Until ES3.0 is complete supported and stabilized? --- src/coregl_internal.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/coregl_internal.h b/src/coregl_internal.h index 1ad9216..c48647d 100644 --- a/src/coregl_internal.h +++ b/src/coregl_internal.h @@ -19,6 +19,18 @@ #define LOG_TAG "CoreGL" #include +/////////////////////////////////////// +// Disable dlog for debugging urgent issues // +#ifdef COREGL_DEBUG +# undef LOGE +# define LOGE printf +# undef LOGW +# define LOGW printf +# undef LOGD +# define LOGD printf +#endif +/////////////////////////////////////// + # define COREGL_ERR(...) \ LOGE(" "__VA_ARGS__) # define COREGL_WRN(...) \ -- 2.7.4