Print socket fd value at dlog when send() failed 86/285386/2
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 9 Dec 2022 05:07:50 +0000 (14:07 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Mon, 12 Dec 2022 06:49:51 +0000 (06:49 +0000)
Change-Id: I5138e668331290b6b54ad0e13056decfd91138df

core/src/muse_core.c
packaging/mused.spec
server/src/muse_server_ipc.c

index f0be9f22aeee226b69704e148314f74041ed5ce2..7c6edad113702bb19574ea855283bab913da5df4 100644 (file)
@@ -61,7 +61,6 @@ void muse_core_setenv(const char *name, const char *value, int replace)
 {
        setenv(name, value, replace);
 }
-
 #endif
 
 static int _muse_get_valid_fd_count(int *fds)
@@ -410,8 +409,8 @@ int muse_core_msg_send_fd(int sock_fd, int *fds, const char *buf)
        ret = send(sock_fd, &msg_info, sizeof(muse_msg_info_t), 0);
        if (ret != sizeof(muse_msg_info_t)) {
                strerror_r(errno, err_msg, MUSE_MSG_LEN_MAX);
-               LOGE("msg info [type : %s size : %zu] send failed : %d [error %s %d]",
-                               msg_type[msg_info.type], msg_info.size, ret, err_msg, errno);
+               LOGE("[fd : %d] msg info [type : %s size : %zu] send failed : %d [error %s %d]",
+                               sock_fd, msg_type[msg_info.type], msg_info.size, ret, err_msg, errno);
 
                goto _MSG_SEND_DONE;
        }
index 71d03154e8138763aabf26048db216912fcbefaa..5797e7d220c3de98c12499c75e031807a49adb19 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.159
+Version:    0.3.160
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index c5f4fccffabfdf366b8305fccc2e6cc8bada6375..f107e2b68e97bb526e3bbb51fc1e5d1291144a50 100644 (file)
@@ -422,7 +422,6 @@ gboolean ms_ipc_create_msg_dispatch_worker(muse_module_h m)
        GThread *thread = NULL;
        GError *error = NULL;
        muse_server_h ms = ms_get_instance();
-
        ms_connection_t *connection = NULL;
 
        LOGD("Enter %p", m);