}
snprintf(buf, sizeof(buf), "%d", pid);
- _E("pid(%d) is inserted at vip", pid);
-
+ _D("pid(%d) is inserted at vip", pid);
return deviced_call_predef_action(PROCESS_GROUP_SET, 2, buf, name);
}
fd = open(filepath, O_RDONLY);
if (fd == -1) {
- _D("Failed to open");
+ _E("Failed to open");
return -1;
}
if (cnt <= 0) {
/* Read /proc/<pid>/cmdline error */
- _D("Failed to read");
+ _E("Failed to read");
return -1;
}
fd = open(filepath, O_CREAT | O_WRONLY, 0644);
if (fd == -1) {
- _D("Failed to open");
+ _E("Failed to open");
return -1;
}
if (write(fd, buf, cnt) == -1) {
- _D("Failed to write");
+ _E("Failed to write");
close(fd);
return -1;
}
- close(fd);
+ close(fd);
return 0;
}
client_sockfd = socket(AF_UNIX, SOCK_STREAM, 0);
if (client_sockfd == -1) {
- _E("%s: socket create failed\n", __FUNCTION__);
+ _E("socket create failed");
return -1;
}
bzero(&clientaddr, sizeof(clientaddr));
if (connect(client_sockfd, (struct sockaddr *)&clientaddr, client_len) <
0) {
- _E("%s: connect failed\n", __FUNCTION__);
+ _E("connect failed");
close(client_sockfd);
return -1;
}
app_path[ret] = '\0';
return 0;
}
-
}
if (val == DISPLAY_DIM_BRIGHTNESS) {
- _D("application can not set this value(DIM VALUE:%d)", val);
+ _E("application can not set this value(DIM VALUE:%d)", val);
errno = EPERM;
return -errno;
}
}
if (val == DISPLAY_DIM_BRIGHTNESS) {
- _D("application can not set this value(DIM VALUE:%d)", val);
+ _E("application can not set this value(DIM VALUE:%d)", val);
errno = EPERM;
return -errno;
}