{
if (send(clifd, &ret, sizeof(int), MSG_NOSIGNAL) < 0) {
if (errno == EPIPE) {
- _E("send failed due to EPIPE.\n");
+ _E("send failed due to EPIPE.");
close(clifd);
return -1;
}
if (pid <= 0)
_E("failed to fork app process");
- SECURE_LOGD("==> real launch pid : %d %s\n", pid, app_path);
+ SECURE_LOGD("==> real launch pid : %d %s", pid, app_path);
return pid;
}
if (fds == 1)
return SD_LISTEN_FDS_START;
else if (fds > 1)
- _E("Too many file descriptors received.\n");
+ _E("Too many file descriptors received.");
else
_D("There is no socket stream");
goto end;
}
- SECURE_LOGD("exec : %s\n", menu_info->app_path);
- SECURE_LOGD("comp_type : %s\n", menu_info->comp_type);
- SECURE_LOGD("internal pool : %s\n", menu_info->internal_pool);
- SECURE_LOGD("hwacc : %s\n", menu_info->hwacc);
- SECURE_LOGD("app_type : %s\n", menu_info->app_type);
- SECURE_LOGD("pkg_type : %s\n", menu_info->pkg_type);
+ SECURE_LOGD("exec : %s", menu_info->app_path);
+ SECURE_LOGD("comp_type : %s", menu_info->comp_type);
+ SECURE_LOGD("internal pool : %s", menu_info->internal_pool);
+ SECURE_LOGD("hwacc : %s", menu_info->hwacc);
+ SECURE_LOGD("app_type : %s", menu_info->app_type);
+ SECURE_LOGD("pkg_type : %s", menu_info->pkg_type);
if (menu_info->comp_type &&
strcmp(menu_info->comp_type, "svcapp") == 0) {
}
if (__before_loop(argc, argv) != 0) {
- _E("process-pool Initialization failed!\n");
+ _E("process-pool Initialization failed!");
return -1;
}
flag = __parse_app_path(ptr, exe, sizeof(exe));
if (flag > 0) {
ptr += flag;
- SECURE_LOGD("parsing app_path: EXEC - %s\n", exe);
+ SECURE_LOGD("parsing app_path: EXEC - %s", exe);
do {
flag = __parse_app_path(ptr, key, sizeof(key));
bundle_add(kb, key, value);
} while (flag > 0);
} else if (flag == 0)
- _D("parsing app_path: No arguments\n");
+ _D("parsing app_path: No arguments");
else
- _D("parsing app_path: Invalid argument\n");
+ _D("parsing app_path: Invalid argument");
}
}
appid, pkg_type, app_path);
ret = security_manager_prepare_app(appid);
if (ret != SECURITY_MANAGER_SUCCESS) {
- _D("fail to set privileges - " \
- "check your package's credential: %d\n", ret);
+ _E("Failed to set privileges %s:%d", appid, ret);
return -1;
}