fix invalid format argument types for dlog 12/135112/2 submit/tizen/20170621.064821
authorHaejeong Kim <backto.kim@samsung.com>
Wed, 21 Jun 2017 03:37:21 +0000 (12:37 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 21 Jun 2017 05:19:25 +0000 (05:19 +0000)
Change-Id: If6227f87c02a8d44020fd665f1ee13da8d3bf415

CMakeLists.txt
src/common/media-svc-util.c
src/common/media-svc.c
src/include/common/media-svc-util.h

index 7ee804b..1ace20f 100755 (executable)
@@ -61,7 +61,7 @@ FOREACH(flag ${pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Wno-deprecated-declarations")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Wno-deprecated-declarations -Werror")
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 SET(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC")
 
index 36b6429..0e8af37 100755 (executable)
@@ -2383,15 +2383,6 @@ char* _media_svc_get_title_from_path(const char *path)
        return title;
 }
 
-#define BUF_LENGHT 256
-
-void _media_svc_print_stderror(void)
-{
-       char buf[BUF_LENGHT] = {0,};
-
-       media_svc_error("STANDARD ERROR [%s]", strerror_r(errno, buf, BUF_LENGHT));
-}
-
 int _media_svc_get_media_type(const char *path, int *mediatype)
 {
        int ret = MS_MEDIA_ERR_NONE;
index b65048e..ca1aa9b 100755 (executable)
@@ -2150,7 +2150,7 @@ int media_svc_get_folder_modified_time(MediaSvcHandle *handle, const char *path,
        ret = _media_svc_get_folder_modified_time_by_path(db_handle, path, storage_id, &modified_time);
 
        system_time = _media_svc_get_file_time(path);
-       media_svc_error("modified_time = [%d], system_time = [%d], path = [%s]", modified_time, system_time, path);
+       media_svc_error("modified_time = [%ld], system_time = [%d], path = [%s]", modified_time, system_time, path);
 
        if (system_time != modified_time && system_time != 0)
                *modified = TRUE;
index 922930a..60db184 100755 (executable)
@@ -70,7 +70,6 @@ int _media_svc_get_pinyin_str(const char *src_str, char **pinyin_str);
 bool _media_svc_check_pinyin_support(void);
 int _media_svc_extract_music_metadata_for_update(sqlite3 *handle, media_svc_content_info_s *content_info, media_svc_media_type_e media_type);
 char *_media_svc_get_title_from_path(const char *path);
-void _media_svc_print_stderror(void);
 int _media_svc_get_media_type(const char *path, int *mediatype);
 
 #ifdef __cplusplus