} else {
if (module) {
module->ch[MUSE_CHANNEL_DATA].fd = fd;
- qdata = _muse_core_ipc_new_qdata(&recv_buf, cur_len, &alloc_size);
- while (qdata) {
+ while ((qdata = _muse_core_ipc_new_qdata(&recv_buf, cur_len, &alloc_size)) != NULL) {
qdata_size = qdata->header.size + sizeof(muse_recv_data_head_t);
if (cur_len > qdata_size) {
alloc_size = alloc_size - qdata_size;
header.size = size;
header.id = data_id;
- LOGI("header.marker : %x [fd (%d) is valid : %d]", header.marker, sock_fd, muse_core_ipc_fd_is_valid(sock_fd));
+ LOGI("header.marker : %x header.size : %d header.id : %"G_GUINT64_FORMAT"", header.marker, sock_fd, header.size, header.id);
if ((ret = send(sock_fd, &header, sizeof(muse_recv_data_head_t), 0)) < 0)
LOGE("fail to send msg");