Resolve empty message of forking when glib debug enabled
[platform/core/multimedia/mm-resource-manager.git] / src / daemon / mm_resource_manager_daemon_priv.c
index b09efff..f90b8e4 100644 (file)
@@ -776,8 +776,7 @@ static gboolean __wait_for_release_cb_sync(mm_resource_manager_id id)
                if (read_size == sizeof(recv_id)) {
                        ret = id == recv_id;
                        if (ret == FALSE)
-                               MM_RM_ERROR("Sync is received from wrong client #%"PRIu64,
-                                               recv_id);
+                               MM_RM_ERROR("Sync is received from wrong client #%"PRIu64, recv_id);
                        /*
                         * Wait POLLHUP to avoid situation when client sent last sync
                         * through the pipe, but not already closed the pipe handle and
@@ -785,12 +784,10 @@ static gboolean __wait_for_release_cb_sync(mm_resource_manager_id id)
                         * the next sync.
                         */
                        sync.revents = 0;
-                       if (poll(&sync, 1, RELEASE_CB_SYNC_TIMEOUT * 1000) == 0 ||
-                                       (sync.revents & (POLLHUP | POLLERR)) == 0)
+                       if (poll(&sync, 1, RELEASE_CB_SYNC_TIMEOUT * 1000) == 0 || (sync.revents & (POLLHUP | POLLERR)) == 0)
                                MM_RM_ERROR("The client didn't close the FIFO");
                } else {
-                       MM_RM_ERROR("Read is failed (revents=%hd,read_size=%zd)",
-                                       sync.revents, read_size);
+                       MM_RM_ERROR("Read is failed (revents=%hd,read_size=%zd)", sync.revents, read_size);
                        ret = FALSE;
                }
        }