Adding extra logs 10/208310/5 accepted/tizen/unified/20190624.075223 submit/tizen/20190621.113920
authorSameer Prakash Pradhan <sp.pradhan@samsung.com>
Fri, 21 Jun 2019 09:38:44 +0000 (15:08 +0530)
committerSameer Prakash Pradhan <sp.pradhan@samsung.com>
Fri, 21 Jun 2019 11:35:19 +0000 (17:05 +0530)
Signed-off-by: Sameer Prakash Pradhan <sp.pradhan@samsung.com>
Change-Id: Idcb1d0ce35f3fa7339a214b667d851438fc22f1b

client/ctsvc_client_ipc.c
client/ctsvc_client_service_helper.c
common/ctsvc_socket.c
server/ctsvc_server_socket.c

index eee45d0..a69195c 100644 (file)
@@ -100,6 +100,7 @@ static int _ctsvc_ipc_create(pims_ipc_h *p_ipc)
 
        snprintf(sock_file, sizeof(sock_file), CTSVC_SOCK_PATH"/.%s", uid,
                        CTSVC_IPC_SERVICE);
+       WARN("pims-ipc-create() sock_file[%s], uid[%d]", sock_file, uid);
        pims_ipc_h ipc = pims_ipc_create(sock_file);
        if (NULL == ipc) {
                /* LCOV_EXCL_START */
@@ -208,6 +209,7 @@ int ctsvc_ipc_connect(contacts_h contact, unsigned int handle_id)
                        return CONTACTS_ERROR_OUT_OF_MEMORY;
                        /* LCOV_EXCL_STOP */
                }
+               WARN("ctsvc_ipc_connect handle_id = %d ", handle_id);
                ret = _ctsvc_ipc_create(&(ipc_data->ipc));
                if (CONTACTS_ERROR_NONE != ret) {
                        _ctsvc_ipc_data_free(ipc_data);
index af207f5..fa9d491 100644 (file)
@@ -93,6 +93,7 @@ int ctsvc_client_connect(contacts_h contact)
 
        ctsvc_mutex_lock(CTS_MUTEX_CONNECTION);
        if (0 == base->connection_count) {
+               WARN("Contacts service connect(%d)", _ctsvc_connection );
                ret = ctsvc_ipc_connect(contact, ctsvc_client_get_pid());
                if (ret != CONTACTS_ERROR_NONE) {
                        /* LCOV_EXCL_START */
index d4b23cc..189285d 100644 (file)
@@ -38,6 +38,7 @@ int ctsvc_socket_init(void)
        struct sockaddr_un caddr;
        uid_t uid = getuid();
 
+       WARN("ctsvc_socket_init: socket ref count : %d", __ctsvc_conn_refcnt);
        if (0 < __ctsvc_conn_refcnt) {
                __ctsvc_conn_refcnt++;
                return  CONTACTS_ERROR_NONE;
index 51ab63e..fa90a18 100644 (file)
@@ -525,7 +525,7 @@ int ctsvc_server_socket_init(void)
        ret = chown(sock_file, getuid(), CTS_SECURITY_FILE_GROUP);
        if (0 != ret)
                /* LCOV_EXCL_START */
-               ERR("chown(%s) Fail(%d)", sock_file, ret);
+               ERR("chown(%s) Fail(%d) errno = %d", sock_file, ret, errno);
        /* LCOV_EXCL_STOP */
 
        ret = chmod(sock_file, CTS_SECURITY_DEFAULT_PERMISSION);