ret = __connect_client_sock(fd, (struct sockaddr *)&saddr, sizeof(saddr),
100 * 1000);
if (ret < -1) {
- _E("maybe peer not launched or peer dead\n");
+ _E("maybe peer not launched or peer dead");
if (retry > 0) {
usleep(100 * 1000);
retry--;
if (errno == EINTR) {
continue;
} else {
- _E("recv error %s\n", strerror_r(errno,
+ _E("recv error %s", strerror_r(errno,
err_buf, sizeof(err_buf)));
free(pkt);
close(fd);
vec[0].iov_len = sizeof(recv_buff);
ret = __recv_message(fd, vec, 1, &vec_len, fds, &fds_len);
if (ret < 0) {
- _E("Error[%d]. while receiving message\n", -ret);
+ _E("Error[%d]. while receiving message", -ret);
if (fds_len > 0)
close(fds[0]);
} else if ((fds_len == fd_size) && (fds_len == 1)) {
ret_fd[0] = fds[0];
} else {
- _E("wrong number of FD recevied. Expected:%d Actual:%d\n", fd_size, fds_len);
+ _E("wrong number of FD recevied. Expected:%d Actual:%d", fd_size, fds_len);
ret = -ECOMM;
}
ret = __connect_client_sock(fd, (struct sockaddr *)&saddr,
sizeof(saddr), 100 * 1000);
if (ret < -1) {
- _E("maybe peer not launched or peer daed\n");
+ _E("maybe peer not launched or peer dead");
if (retry > 0) {
usleep(100 * 1000);
retry--;
{
if (send(fd, &res, sizeof(int), MSG_NOSIGNAL) < 0) {
if (errno == EPIPE) {
- _E("send failed due to EPIPE.\n");
+ _E("send failed due to EPIPE.");
close(fd);
return -1;
}
if (((info = __find_resultcb(launched_pid, kb)) == NULL)
|| (launched_pid < 0)) {
- _E("reject by pid - wait pid = %d, recvd pid = %d\n", getpid(),
+ _E("reject by pid - wait pid = %d, recvd pid = %d", getpid(),
launched_pid);
/* second chance - support app launched by shell script*/
if (pgid <= 1)
return -1;
if ((info = __find_resultcb(pgid, kb)) == NULL) {
- _E("second chance : also reject pgid - %d\n", pgid);
+ _E("second chance : also reject pgid - %d", pgid);
return -1;
}
}
return AUL_R_EINVAL;
if ((miregex_tbl = miregex_get_regex_table()) == NULL) {
- _E("load miregex_table fail\n");
+ _E("load miregex_table fail");
return AUL_R_ERROR;
}
if (__match_content_with_regex(content,
&(miregex_tbl->regex_preg))) {
founded = miregex_tbl->mimetype;
- SECURE_LOGD("content %s => mimetype %s\n", content, founded);
+ SECURE_LOGD("content %s => mimetype %s", content, founded);
break;
}
miregex_tbl = miregex_tbl->next;
return AUL_R_EINVAL;
if ((miregex_tbl = miregex_get_regex_table()) == NULL) {
- _E("load miregex_table fail\n");
+ _E("load miregex_table fail");
return AUL_R_ERROR;
}
while (miregex_tbl) {
if (strcmp(miregex_tbl->mimetype, mimetype) == 0) {
founded = miregex_tbl->desc;
- _D("mimetype %s => desc %s\n", mimetype, founded);
+ _D("mimetype %s => desc %s", mimetype, founded);
break;
}
miregex_tbl = miregex_tbl->next;
return -1;
}
regerror(error, &(tbl->regex_preg), msg, ret);
- _E("regex compile error - %s\n", msg);
+ _E("regex compile error - %s", msg);
if (msg) {
free(msg);
msg = NULL;
info->category = (char *)aul_svc_get_category(b);
info->win_id = (char *)bundle_get_val(b, AUL_SVC_K_WIN_ID);
- SECURE_LOGD("getting resolve info for: operation - %s / uri - %s / mime - %s\n",
+ SECURE_LOGD("getting resolve info for: operation - %s / uri - %s / mime - %s",
info->op, info->uri, info->mime);
if (info->uri) {
ret = _svc_db_adjust_list_with_submode(mainapp_mode, win_id, pkg_list, uid);
if (ret < 0) {
- _E("error on get_list_with_submode :%d", ret);
+ _E("error: %d", ret);
return -1;
}
API int aul_svc_set_operation(bundle *b, const char *operation)
{
if (b == NULL) {
- _E("bundle for aul_svc_set_operation is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
API int aul_svc_set_uri(bundle *b, const char *uri)
{
if (b == NULL) {
- _E("bundle for aul_svc_set_uri is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
API int aul_svc_set_mime(bundle *b, const char *mime)
{
if (b == NULL) {
- _E("bundle for aul_svc_set_mime is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
API int aul_svc_set_pkgname(bundle *b, const char *pkg_name)
{
if (b == NULL) {
- _E("bundle for aul_svc_set_pkgname is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
int ret;
if (b == NULL || appid == NULL) {
- _E("bundle for aul_svc_set_appid is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
API int aul_svc_set_category(bundle *b, const char *category)
{
if (b == NULL) {
- _E("bundle for aul_svc_set_category is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
API int aul_svc_set_launch_mode(bundle *b, const char *mode)
{
if (b == NULL) {
- _E("bundle for aul_svc_set_launch_mode is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
gchar *checksum;
if (b == NULL) {
- _E("bundle for aul_svc_set_appid is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
return ret;
}
- SECURE_LOGD("op - %s / mime - %s / scheme - %s\n",
+ SECURE_LOGD("op - %s / mime - %s / scheme - %s",
info.op, info.origin_mime, info.scheme);
checksum = __make_checksum(info.op, info.uri, info.origin_mime);
char *query2 = NULL;
if (b == NULL) {
- _E("bundle for aul_svc_run_service is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
if (iter_fn == NULL) {
- _E("iter_fn for aul_svc_run_service is NULL");
+ _E("iter_fn is NULL");
return AUL_SVC_RET_EINVAL;
}
return ret;
}
- _D("operation - %s / shceme - %s / mime - %s\n", info.op, info.scheme,
+ _D("operation - %s / shceme - %s / mime - %s", info.op, info.scheme,
info.mime);
query2 = __make_query_with_collation(info.op, info.uri,
for (iter = pkg_list; iter != NULL; iter = g_slist_next(iter)) {
pkgname = iter->data;
- SECURE_LOGD("PKGNAME : %s\n", pkgname);
+ SECURE_LOGD("PKGNAME : %s", pkgname);
if (iter_fn(pkgname, data) != 0)
break;
g_free(pkgname);
snprintf(win_id, MAX_LOCAL_BUFSZ, "%d", wid);
if (b == NULL) {
- _E("bundle for aul_svc_allow_transient_app is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
API int aul_svc_subscribe_launch_result(bundle *b, const char *result)
{
if (b == NULL) {
- _E("bundle for aul_svc_subscribe_launch_result is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
char tmp[MAX_LOCAL_BUFSZ];
if (b == NULL) {
- _E("bundle for aul_svc_set_loader_id is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
API int aul_svc_set_loader_name(bundle *b, const char *loader_name)
{
if (b == NULL) {
- _E("bundle for aul_svc_set_loader_name is NULL");
+ _E("bundle is NULL");
return AUL_SVC_RET_EINVAL;
}
char *db_path;
if (svc_db) {
- _D("Already initialized\n");
+ _D("Already initialized");
return 0;
}
char *db_path;
if (app_info_db && global_app_info_db) {
- _D("Already initialized\n");
+ _D("Already initialized");
return 0;
}
rc = sqlite3_exec(app_info_db, "PRAGMA journal_mode = PERSIST",
NULL, NULL, NULL);
if (SQLITE_OK != rc) {
- _D("Fail to change journal mode\n");
+ _D("Fail to change journal mode");
goto err;
}
rc = sqlite3_exec(global_app_info_db, "PRAGMA journal_mode = PERSIST",
NULL, NULL, NULL);
if (SQLITE_OK != rc) {
- _D("Fail to change journal mode\n");
+ _D("Fail to change journal mode");
goto err;
}
int r;
if (pkg_name == NULL) {
- _E("Invalid argument: data to delete is NULL\n");
+ _E("Invalid argument: data to delete is NULL");
return -1;
}
int r;
if (pkg_name == NULL) {
- _E("Invalid argument: data to delete is NULL\n");
+ _E("Invalid argument: data to delete is NULL");
return 0;
}
if (__init_app_info_db(uid) < 0)
return 0;
- SECURE_LOGD("query : %s\n", query);
+ SECURE_LOGD("query : %s", query);
r = __get_list_with_query(app_info_db, query, pkg_list);
if (r < 0) {