fix dlog format 51/194751/4 accepted/tizen/unified/20181221.125534 submit/tizen/20181221.053804
authorSeokHoon LEE <andy.shlee@samsung.com>
Fri, 7 Dec 2018 06:11:14 +0000 (15:11 +0900)
committerSeokHoon LEE <andy.shlee@samsung.com>
Mon, 10 Dec 2018 05:44:47 +0000 (14:44 +0900)
Change-Id: I69b8f2568dbd51451e0d061baf2595084ac4fd70
Signed-off-by: SeokHoon LEE <andy.shlee@samsung.com>
packaging/libmm-streamrecorder.spec
src/mm_streamrecorder_attribute.c
src/mm_streamrecorder_recorder.c
test/mm_streamrecorder_testsuite.c

index 9b15991..df7002e 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-streamrecorder
 Summary:    Media Stream Recorder library
-Version:    0.0.20
+Version:    0.0.21
 Release:    0
 Group:      Multimedia/Other
 License:    Apache-2.0
index f64b0dd..02e45b0 100644 (file)
@@ -705,7 +705,7 @@ _mmstreamrecorder_get_available_format(MMHandleType handle, int type, int ** for
 
        arr = (int*) g_malloc0(count * sizeof(int));
        if (arr == NULL) {
-               _mmstreamrec_dbg_err("malloc failed : %d", count * sizeof(int));
+               _mmstreamrec_dbg_err("malloc failed : %zu", count * sizeof(int));
                return -1;
        }
 
@@ -866,7 +866,7 @@ int _mmstreamrecorder_set_attributes(MMHandleType handle, char **err_attr_name,
 
        attrs = MMF_STREAMRECORDER_ATTRS(handle);
        if (!attrs) {
-               _mmstreamrec_dbg_err("handle 0x%x, attrs is NULL, attr name [%s]", handle, attribute_name);
+               _mmstreamrec_dbg_err("handle %p, attrs is NULL, attr name [%s]", handle, attribute_name);
                return MM_ERROR_STREAMRECORDER_NOT_INITIALIZED;
        }
 
@@ -875,7 +875,7 @@ int _mmstreamrecorder_set_attributes(MMHandleType handle, char **err_attr_name,
 
        ret = __mmstreamrecorder_check_valid_pair(handle, err_attr_name, attribute_name, var_args);
 
-       _mmstreamrec_dbg_err("__mmstreamrecorder_check_valid_pair handle 0x%x, attr name [%s] , ret = %d", handle, attribute_name, ret);
+       _mmstreamrec_dbg_err("__mmstreamrecorder_check_valid_pair handle %p, attr name [%s] , ret = %d", handle, attribute_name, ret);
 
        if (ret == MM_ERROR_NONE) {
                /* In 64bit environment, unexpected result is returned if var_args is used again. */
@@ -883,7 +883,7 @@ int _mmstreamrecorder_set_attributes(MMHandleType handle, char **err_attr_name,
        }
        va_end(var_args_copy);
 
-       _mmstreamrec_dbg_err("mm_attrs_set_valist handle 0x%x, attr name [%s] , ret = %d", handle, attribute_name, ret);
+       _mmstreamrec_dbg_err("mm_attrs_set_valist handle %p, attr name [%s] , ret = %d", handle, attribute_name, ret);
        return ret;
 }
 
index 75996d0..d9eaeb0 100644 (file)
@@ -67,7 +67,7 @@ int _mmstreamrecorder_create_pipeline(MMHandleType handle)
        _MMStreamRecorderSubContext *sc = NULL;
        GstElement *pipeline = NULL;
 
-       _mmstreamrec_dbg_log("handle : %x", handle);
+       _mmstreamrec_dbg_log("handle : %p", handle);
 
        mmf_return_val_if_fail(hstreamrecorder, MM_ERROR_STREAMRECORDER_NOT_INITIALIZED);
 
index 06f5462..c6f570d 100644 (file)
@@ -1169,7 +1169,7 @@ static gboolean mode_change()
        if (!fp)
                return -1;
        nread = fread(&buffer, sizeof(char), sizeof(buffer), fp);
-       time_msg_t("mm_streamrecorder_create()  : nread %d, sizeof(buffer) %d", nread, sizeof(buffer));
+       time_msg_t("mm_streamrecorder_create()  : nread %zu, sizeof(buffer) %zu", nread, sizeof(buffer));
        fclose(fp);
 
        err = mm_streamrecorder_create(&hstreamrecorder->streamrecorder);