fix invalid format for dlog 68/136068/1
authorchen89.chen <chen89.chen@samsung.com>
Wed, 28 Jun 2017 03:59:55 +0000 (11:59 +0800)
committerchen89.chen <chen89.chen@samsung.com>
Wed, 28 Jun 2017 04:02:12 +0000 (12:02 +0800)
Change-Id: I631e6ccc3efcbc2b38e75cae187c71397c92303e

include_product/media_info_private.h
packaging/capi-content-media-content.spec
test/media-content_test.c

index c6577ff..490c98e 100755 (executable)
@@ -1028,48 +1028,48 @@ GMutex* _content_get_db_mutex(void);
 
 #define media_content_retv_if(expr, val) do { \
                        if (expr) { \
-                               LOGE(FONT_COLOR_RED"[%d]"FONT_COLOR_RESET, media_content_gettid());    \
+                               LOGE(FONT_COLOR_RED"[%ld]"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""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
+                               LOGE(FONT_COLOR_RED"[%ld]"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""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
+                       LOGW(FONT_COLOR_GREEN"[%ld]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
                } while (0)
 
 #define media_content_debug(fmt, arg...) do { \
-                       LOGD(FONT_COLOR_RESET"[%d]"fmt"", media_content_gettid(), ##arg);     \
+                       LOGD(FONT_COLOR_RESET"[%ld]"fmt"", media_content_gettid(), ##arg);     \
                } while (0)
 
 #define media_content_info(fmt, arg...) do { \
-                       LOGI(FONT_COLOR_GREEN"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
+                       LOGI(FONT_COLOR_GREEN"[%ld]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
                } while (0)
 
 #define media_content_error(fmt, arg...) do { \
-                       LOGE(FONT_COLOR_RED"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
+                       LOGE(FONT_COLOR_RED"[%ld]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
                } while (0)
 
 #define media_content_debug_func() do { \
-                       LOGD(FONT_COLOR_RESET"[%d]", media_content_gettid());     \
+                       LOGD(FONT_COLOR_RESET"[%ld]", media_content_gettid());     \
                } while (0)
 
 #define media_content_sec_debug(fmt, arg...) do { \
-                       SECURE_LOGD(FONT_COLOR_CYAN"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
+                       SECURE_LOGD(FONT_COLOR_CYAN"[%ld]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
                } while (0)
 
 #define media_content_sec_warn(fmt, arg...) do { \
-                       SECURE_LOGW(FONT_COLOR_RED"[%d]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
+                       SECURE_LOGW(FONT_COLOR_RED"[%ld]"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""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
+                       SECURE_LOGE(FONT_COLOR_RED"[%ld]"fmt""FONT_COLOR_RESET, media_content_gettid(), ##arg);     \
                } while (0)
 
 #define ERR_BUF_LENGTH 256
index 2dcabf2..1b2ba1e 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-content-media-content
 Summary:    A Media content library in Tizen Native API
-Version:    0.3.16
+Version:    0.3.17
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index df24ad0..6b2e2d7 100755 (executable)
@@ -3809,7 +3809,7 @@ bool pvr_item_cb(media_pvr_h pvr, void *user_data)
        ret = media_pvr_get_size(pvr, &l_value);
        if (ret != MEDIA_CONTENT_ERROR_NONE)
                media_content_error("Fail to media_pvr_get_size");
-       media_content_debug("size [%ld]", l_value);
+       media_content_debug("size [%lld]", l_value);
 
        ret = media_pvr_get_timezone(pvr, &i_value);
        if (ret != MEDIA_CONTENT_ERROR_NONE)