ret = _mc_util_get_own_name(&(_client->client_name));
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- mc_error("Filed to _mc_util_get_own_name %d", ret);
+ mc_error("Fail to _mc_util_get_own_name [%d]", ret);
goto Error;
}
ret = _mc_ipc_get_dbus_connection(&(_client->dconn), &(_client->dref_count));
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- mc_error("error in client init %d", ret);
+ mc_error("Fail to _mc_ipc_get_dbus_connection [%d]", ret);
goto Error;
}
ret = mc_db_connect(&_client->db_handle, getuid(), FALSE);
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- mc_error("error in connecting to DB %d", ret);
+ mc_error("Fail to mc_db_connect [%d]", ret);
goto Error;
}
serv_addr.sun_family = AF_UNIX;
MC_SAFE_STRLCPY(serv_addr.sun_path, MC_IPC_PATH, sizeof(serv_addr.sun_path));
- /* Connecting to the media db server */
+ /* Connecting to the media controller service */
if (connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0) {
mc_stderror("connect error");
close(sockfd);
ret = _mc_ipc_get_dbus_connection(&(_server->dconn), &(_server->dref_count));
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- mc_error("Error allocation memory");
+ mc_error("Fail to _mc_ipc_get_dbus_connection [%d]", ret);
goto ERROR;
}
ret = mc_db_connect(&(_server->db_handle), getuid(), FALSE);
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- mc_error("fail mc_db_connect [%d]", ret);
+ mc_error("Fail to mc_db_connect [%d]", ret);
goto ERROR;
}