From: Minje Ahn Date: Fri, 10 Mar 2017 00:02:08 +0000 (+0900) Subject: Recover dlog colors X-Git-Tag: accepted/tizen/common/20170321.102142^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1ca538af7b4e7d87b2bce8cc3128defb3db0d37;p=platform%2Fcore%2Fapi%2Fmedia-content.git Recover dlog colors Change-Id: I621999c931f70f1630e79e9a6f6267acee7f5417 Signed-off-by: Minje Ahn --- diff --git a/include/media_info_private.h b/include/media_info_private.h index 9204c93..aaf565d 100755 --- a/include/media_info_private.h +++ b/include/media_info_private.h @@ -782,20 +782,20 @@ int _media_filter_attribute_option_generate(attribute_h attr, filter_h filter, c #define media_content_retv_if(expr, val) do { \ if (expr) { \ - LOGE(FONT_COLOR_RED"[%d]", media_content_gettid()); \ + LOGE(FONT_COLOR_RED"[%d]"FONT_COLOR_RESET, media_content_gettid()); \ return (val); \ } \ } while (0) #define media_content_retvm_if(expr, val, fmt, arg...) do { \ if (expr) { \ - LOGE(FONT_COLOR_RED"[%d]"fmt"", media_content_gettid(), ##arg); \ + LOGE(FONT_COLOR_RED"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ return (val); \ } \ } while (0) #define media_content_warn(fmt, arg...) do { \ - LOGW(FONT_COLOR_GREEN"[%d]"fmt"", media_content_gettid(), ##arg); \ + LOGW(FONT_COLOR_GREEN"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define media_content_debug(fmt, arg...) do { \ @@ -803,11 +803,11 @@ int _media_filter_attribute_option_generate(attribute_h attr, filter_h filter, c } while (0) #define media_content_info(fmt, arg...) do { \ - LOGI(FONT_COLOR_GREEN"[%d]"fmt"", media_content_gettid(), ##arg); \ + LOGI(FONT_COLOR_GREEN"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define media_content_error(fmt, arg...) do { \ - LOGE(FONT_COLOR_RED"[%d]"fmt"", media_content_gettid(), ##arg); \ + LOGE(FONT_COLOR_RED"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define media_content_debug_func() do { \ @@ -819,18 +819,18 @@ int _media_filter_attribute_option_generate(attribute_h attr, filter_h filter, c } while (0) #define media_content_sec_warn(fmt, arg...) do { \ - SECURE_LOGW(FONT_COLOR_GREEN"[%d]"fmt"", media_content_gettid(), ##arg); \ + SECURE_LOGW(FONT_COLOR_GREEN"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define media_content_sec_error(fmt, arg...) do { \ - SECURE_LOGE(FONT_COLOR_RED"[%d]"fmt"", media_content_gettid(), ##arg); \ + SECURE_LOGE(FONT_COLOR_RED"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define ERR_BUF_LENGTH 256 #define media_content_stderror(fmt) do { \ char media_content_stderror_buf[ERR_BUF_LENGTH] = {0, }; \ strerror_r(errno, media_content_stderror_buf, ERR_BUF_LENGTH); \ - LOGE(FONT_COLOR_RED fmt" : STANDARD ERROR [%s]", media_content_stderror_buf); \ + LOGE(FONT_COLOR_RED fmt" : STANDARD ERROR [%s]"FONT_COLOR_RESET, media_content_stderror_buf); \ } while (0) #ifdef __cplusplus diff --git a/include_product/media_info_private.h b/include_product/media_info_private.h index e766540..952b1dd 100755 --- a/include_product/media_info_private.h +++ b/include_product/media_info_private.h @@ -1008,20 +1008,20 @@ GMutex* _content_get_db_mutex(void); #define media_content_retv_if(expr, val) do { \ if (expr) { \ - LOGE(FONT_COLOR_RED"[%d]", media_content_gettid()); \ + LOGE(FONT_COLOR_RED"[%d]"FONT_COLOR_RESET, media_content_gettid()); \ return (val); \ } \ } while (0) #define media_content_retvm_if(expr, val, fmt, arg...) do { \ if (expr) { \ - LOGE(FONT_COLOR_RED"[%d]"fmt"", media_content_gettid(), ##arg); \ + LOGE(FONT_COLOR_RED"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ return (val); \ } \ } while (0) #define media_content_warn(fmt, arg...) do { \ - LOGW(FONT_COLOR_GREEN"[%d]"fmt"", media_content_gettid(), ##arg); \ + LOGW(FONT_COLOR_GREEN"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define media_content_debug(fmt, arg...) do { \ @@ -1029,11 +1029,11 @@ GMutex* _content_get_db_mutex(void); } while (0) #define media_content_info(fmt, arg...) do { \ - LOGI(FONT_COLOR_GREEN"[%d]"fmt"", media_content_gettid(), ##arg); \ + LOGI(FONT_COLOR_GREEN"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define media_content_error(fmt, arg...) do { \ - LOGE(FONT_COLOR_RED"[%d]"fmt"", media_content_gettid(), ##arg); \ + LOGE(FONT_COLOR_RED"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define media_content_debug_func() do { \ @@ -1045,18 +1045,18 @@ GMutex* _content_get_db_mutex(void); } while (0) #define media_content_sec_warn(fmt, arg...) do { \ - SECURE_LOGW(FONT_COLOR_GREEN"[%d]"fmt"", media_content_gettid(), ##arg); \ + SECURE_LOGW(FONT_COLOR_GREEN"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define media_content_sec_error(fmt, arg...) do { \ - SECURE_LOGE(FONT_COLOR_RED"[%d]"fmt"", media_content_gettid(), ##arg); \ + SECURE_LOGE(FONT_COLOR_RED"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg); \ } while (0) #define ERR_BUF_LENGTH 256 #define media_content_stderror(fmt) do { \ char media_content_stderror_buf[ERR_BUF_LENGTH] = {0, }; \ strerror_r(errno, media_content_stderror_buf, ERR_BUF_LENGTH); \ - LOGE(FONT_COLOR_RED fmt" : STANDARD ERROR [%s]", media_content_stderror_buf); \ + LOGE(FONT_COLOR_RED fmt" : STANDARD ERROR [%s]"FONT_COLOR_RESET, media_content_stderror_buf); \ } while (0) #ifdef __cplusplus