Add warning log 95/141295/1 accepted/tizen/unified/20170731.153813 submit/tizen/20170731.013529
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 31 Jul 2017 01:21:05 +0000 (10:21 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Mon, 31 Jul 2017 01:21:05 +0000 (10:21 +0900)
Change-Id: I0d67086944555192adac049142cb9e87cf1ffac2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
include/thumbnail_util_private.h
src/thumbnail_util.c

index c20d58d..5be148c 100755 (executable)
@@ -68,6 +68,10 @@ typedef struct {
 #define FONT_COLOR_CYAN     "\033[36m"
 #define FONT_COLOR_GRAY     "\033[37m"
 
+#define thumbnail_util_warn(fmt, arg...) do { \
+               LOGW(FONT_COLOR_GREEN"[%ld]"fmt""FONT_COLOR_RESET, ##arg);     \
+       } while (0)
+
 #define thumbnail_util_debug(fmt, arg...) do { \
                LOGD(FONT_COLOR_RESET""fmt""FONT_COLOR_RESET, ##arg); \
        } while (0)
index 90fb7e8..9e77856 100755 (executable)
@@ -220,7 +220,7 @@ int thumbnail_util_cancel(thumbnail_h thumb, const char *request_id)
 
 int thumbnail_util_cancel_all(thumbnail_h thumb)
 {
-       media_content_warn("DEPRECATION WARNING: thumbnail_util_cancel_all() is deprecated and will be removed from next release. Use thumbnail_util_cancel() instead.");
+       thumbnail_util_warn("DEPRECATION WARNING: thumbnail_util_cancel_all() is deprecated and will be removed from next release. Use thumbnail_util_cancel() instead.");
        int ret = THUMBNAIL_UTIL_ERROR_NONE;
        thumbnail_s *_thumb = (thumbnail_s *)thumb;