From: chen89.chen Date: Wed, 28 Jun 2017 03:59:55 +0000 (+0800) Subject: fix invalid format for dlog X-Git-Tag: submit/tizen/20170628.052419~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aeeda7f0eff572e678370b1210cc8c06c3702cf8;p=platform%2Fcore%2Fapi%2Fmedia-content.git fix invalid format for dlog Change-Id: I631e6ccc3efcbc2b38e75cae187c71397c92303e --- diff --git a/include_product/media_info_private.h b/include_product/media_info_private.h index c6577ff..490c98e 100755 --- a/include_product/media_info_private.h +++ b/include_product/media_info_private.h @@ -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 diff --git a/packaging/capi-content-media-content.spec b/packaging/capi-content-media-content.spec index 2dcabf2..1b2ba1e 100755 --- a/packaging/capi-content-media-content.spec +++ b/packaging/capi-content-media-content.spec @@ -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 diff --git a/test/media-content_test.c b/test/media-content_test.c index df24ad0..6b2e2d7 100755 --- a/test/media-content_test.c +++ b/test/media-content_test.c @@ -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)