summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyeonghun Lee <kh9090.lee@samsung.com>2017-03-07 14:08:13 +0900
committerKyeonghun Lee <kh9090.lee@samsung.com>2017-03-07 14:17:10 +0900
commit05890ff1c4104fa5f556b97eb9283c68dfa85d22 (patch)
treed791c33ca069dbff66c9cd9adc69b16850e8dd49
parent889fec29ab99c8999c1819b3278d3f9a73b19dbb (diff)
downloadmsg-service-accepted/tizen_3.0_ivi.tar.gz
msg-service-accepted/tizen_3.0_ivi.tar.bz2
msg-service-accepted/tizen_3.0_ivi.zip
Change-Id: Id772d4329a9e66955891301aa65e95af4ec04c5c Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
-rw-r--r--manager/src/msg-manager.cpp8
-rwxr-xr-xutils/MsgUtilFunction.cpp12
2 files changed, 10 insertions, 10 deletions
diff --git a/manager/src/msg-manager.cpp b/manager/src/msg-manager.cpp
index 590c238..10d75d2 100644
--- a/manager/src/msg-manager.cpp
+++ b/manager/src/msg-manager.cpp
@@ -50,7 +50,7 @@ extern "C"
msg_handle_t msg_handle = NULL;
cm_client_h cm_handle = NULL;
-pthread_mutex_t mx;
+pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER;
static int job_cnt = 0;
static bool terminated = false;
@@ -93,11 +93,11 @@ bool service_app_create(void *data)
if (msg_err != MSG_SUCCESS)
MSG_MGR_ERR("msg_open_msg_handle() failed [%d]", msg_err);
else
- MSG_MGR_DEBUG("msg_open_msg_handle() success");
+ MSG_MGR_INFO("msg_open_msg_handle() success");
break;
} else {
- MSG_MGR_DEBUG("msg-server is not ready.");
+ MSG_MGR_INFO("msg-server is not ready.");
sleep(1);
}
}
@@ -755,7 +755,7 @@ void service_app_control(app_control_h app_control, void *data)
if (g_strcmp0(operation, APP_CONTROL_OPERATION_DEFAULT) == 0) {
ret = app_control_get_extra_data(app_control, "cmd", &cmd);
if (ret == APP_CONTROL_ERROR_NONE && cmd) {
- MSG_MGR_DEBUG("cmd [%s]", cmd);
+ MSG_MGR_INFO("cmd [%s]", cmd);
if (g_strcmp0(cmd, "incoming_msg") == 0) {
_incoming_msg_func(app_control);
diff --git a/utils/MsgUtilFunction.cpp b/utils/MsgUtilFunction.cpp
index d1fbc34..0174373 100755
--- a/utils/MsgUtilFunction.cpp
+++ b/utils/MsgUtilFunction.cpp
@@ -65,7 +65,7 @@ static int dpm_policy_enable[] = {
static int phonenumberMinMatchDigit = -1;
#endif
-pthread_mutex_t mx;
+pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER;
/*==================================================================================================
FUNCTION IMPLEMENTATION
@@ -1272,7 +1272,7 @@ void* _msg_launch_app(void *data)
msg_launch_app_data *ad = (msg_launch_app_data *)data;
int ret = aul_launch_app_for_uid(ad->app_id, ad->bundle_data, msg_get_login_user());
if (ret <= 0) {
- MSG_DEBUG("aul_launch_app_for_uid() is failed : %d", ret);
+ MSG_ERR("aul_launch_app_for_uid() is failed : %d", ret);
}
g_free(ad->app_id);
@@ -1297,7 +1297,7 @@ msg_error_t msg_launch_app(const char *app_id, bundle *bundle_data)
pthread_t thd;
if (pthread_create(&thd, NULL, &_msg_launch_app, data) < 0) {
- MSG_DEBUG("pthread_create() error");
+ MSG_ERR("pthread_create() error");
}
pthread_detach(thd);
@@ -1309,7 +1309,7 @@ msg_error_t msg_aul_svc_set_operation(bundle *bundle_data, const char *operation
{
int ret = aul_svc_set_operation(bundle_data, operation);
if (ret < 0) {
- MSG_DEBUG("aul_svc_set_operation() is failed : %d", ret);
+ MSG_ERR("aul_svc_set_operation() is failed : %d", ret);
return MSG_ERR_UNKNOWN;
}
@@ -1321,7 +1321,7 @@ msg_error_t msg_aul_svc_set_uri(bundle *bundle_data, char *uri)
{
int ret = aul_svc_set_uri(bundle_data, uri);
if (ret < 0) {
- MSG_DEBUG("aul_svc_set_uri() is failed : %d", ret);
+ MSG_ERR("aul_svc_set_uri() is failed : %d", ret);
return MSG_ERR_UNKNOWN;
}
@@ -1344,7 +1344,7 @@ bool msg_check_dpm_policy(int type)
void msg_syspopup_message(bool is_sending)
{
- MSG_DEBUG("popup toast for dpm restriction. is_sending [%d]", is_sending);
+ MSG_INFO("popup toast for dpm restriction. is_sending [%d]", is_sending);
GDBusConnection *connection = NULL;
GDBusProxy *dbus_proxy = NULL;