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;
}
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;
}
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. */
}
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;
}
_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);
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);