retv_if(obj == NULL, FALSE);
if (strlen(dest_path) > MTP_MAX_PATHNAME_SIZE - 1) {
- ERR("dest_path is too long[%d]\n", strlen(dest_path));
+ ERR("dest_path is too long[%zu]\n", strlen(dest_path));
return FALSE;
}
if (strlen(src_path) > MTP_MAX_PATHNAME_SIZE - 1) {
- ERR("src_path is too long[%d]\n", strlen(src_path));
+ ERR("src_path is too long[%zu]\n", strlen(src_path));
return FALSE;
}
sizeof(temp_chld_wpath) / WCHAR_SIZ, temp_chld_path);
if (_util_wchar_len(temp_chld_wpath) >
MTP_MAX_PATHNAME_SIZE - 1) {
- ERR("Child Object Full Path is too long[%d]\n",
+ ERR("Child Object Full Path is too long[%zu]\n",
strlen(child_obj->file_path));
_prop_deinit_ptparray(&child_arr);
return FALSE;
g_strlcpy(dest_chld_path, dest_path,
MTP_MAX_PATHNAME_SIZE + 1);
} else {
- ERR("dest_chld_wpath is too long[%d]\n",
+ ERR("dest_chld_wpath is too long[%zu]\n",
strlen(dest_path));
_prop_deinit_ptparray(&child_arr);
return FALSE;
g_strlcat(dest_chld_path, ptr,
MTP_MAX_PATHNAME_SIZE + 1);
} else {
- ERR("dest_chld_path + ptr is too long[%d]\n",
+ ERR("dest_chld_path + ptr is too long[%zu]\n",
(strlen(ptr) + strlen(ptr)));
_prop_deinit_ptparray(&child_arr);
return FALSE;
_cmd_hdlr_send_response(hdlr, resp, 1, &i);
g_free(blk.data);
- ERR("invalid object format, bytes_left [%d]:[%u]\n", bytes_left,
+ ERR("invalid object format, bytes_left [%d]:[%zu]\n", bytes_left,
sizeof(mtp_uint32));
return;
}
}
capacity = used_size = avail_size = (mtp_uint64)buf.f_bsize;
- DBG("Block size : %d\n", buf.f_bsize);
+ DBG("Block size : %lu\n", (unsigned long)buf.f_bsize);
capacity *= buf.f_blocks;
used_size *= (buf.f_blocks - buf.f_bavail);
avail_size *= buf.f_bavail;
while (*temp++)
/* DO NOTHING */ ;
- DBG("Length : %d\n", temp - s - 1);
+ DBG("Length : %zd\n", temp - s - 1);
return ((size_t)(temp - s - 1));
} else { /* not-aligned, byte to byte approach - slow */
while (*temp || *(temp + 1))
temp += 2;
- DBG("Length : %d\n", (temp - (unsigned char *)s) / 2);
+ DBG("Length : %zd\n", (temp - (unsigned char *)s) / 2);
return ((size_t) (temp - (unsigned char *)s) / 2);
}
}