/* Can be null (kill server msg) */
if (strlen(recv_msg->org_path) >= MAX_FILEPATH_LEN) {
- MSAPI_DBG_ERR("org_path size is invlid[%d]", strlen(recv_msg->org_path));
+ MSAPI_DBG_ERR("org_path size is invlid[%zu]", strlen(recv_msg->org_path));
return MS_MEDIA_ERR_INVALID_IPC_MESSAGE;
}
/* Can be null (raw request case) */
if (strlen(recv_msg->dst_path) >= MAX_FILEPATH_LEN) {
- MSAPI_DBG_ERR("dst_path size is invlid[%d]", strlen(recv_msg->dst_path));
+ MSAPI_DBG_ERR("dst_path size is invlid[%zu]", strlen(recv_msg->dst_path));
return MS_MEDIA_ERR_INVALID_IPC_MESSAGE;
}
}
if ((strlen((*register_data)->msg) <= 0) || (strlen((*register_data)->msg) >= MS_FILE_PATH_LEN_MAX)) {
- MS_DBG_ERR("message size[%d] is wrong", strlen((*register_data)->msg));
+ MS_DBG_ERR("message size[%zu] is wrong", strlen((*register_data)->msg));
return MS_MEDIA_ERR_INVALID_IPC_MESSAGE;
}
}
if ((strlen((*register_data)->msg) <= 0) || (strlen((*register_data)->msg) >= MS_FILE_PATH_LEN_MAX)) {
- MS_DBG_ERR("message size[%d] is wrong", strlen((*register_data)->msg));
+ MS_DBG_ERR("message size[%zu] is wrong", strlen((*register_data)->msg));
return MS_MEDIA_ERR_INVALID_IPC_MESSAGE;
}
memcpy(msg, buf, sizeof(dcmMsg));
if (strlen(msg->msg) >= MAX_FILEPATH_LEN) {
- MS_DBG_ERR("msg size is invlid[%d]", strlen(msg->msg));
+ MS_DBG_ERR("msg size is invlid[%zu]", strlen(msg->msg));
MS_SAFE_FREE(buf);
return MS_MEDIA_ERR_INVALID_IPC_MESSAGE;
}
}
if (strlen(msg->org_path) == 0 || strlen(msg->org_path) >= MS_FILE_PATH_LEN_MAX) {
- MS_DBG_ERR("org_path size is invalid %d", strlen(msg->org_path));
+ MS_DBG_ERR("org_path size is invalid %zu", strlen(msg->org_path));
return MS_MEDIA_ERR_DATA_TAINTED;
}
/* it can be empty string */
if (strlen(msg->dst_path) >= MS_FILE_PATH_LEN_MAX) {
- MS_DBG_ERR("dst_path size is invalid %d", strlen(msg->dst_path));
+ MS_DBG_ERR("dst_path size is invalid %zu", strlen(msg->dst_path));
return MS_MEDIA_ERR_DATA_TAINTED;
}