Change-Id: I74aaa00842ed010732bc8dd7f30f7ef316622e7c
Signed-off-by: jusung son <jusung07.son@samsung.com>
fd = open(buf, O_RDONLY);
if (fd >= 0) {
- read(fd, app_id, sizeof(app_id) - 1);
+ ret = read(fd, app_id, sizeof(app_id) - 1);
+ if (ret < 0)
+ bxt_err("Cannot read %s: %d", buf, errno);
close(fd);
}
proc_fd = open(buf, O_RDONLY);
if (proc_fd >= 0) {
- read(proc_fd, proc_name, sizeof(proc_name) - 1);
+ r = read(proc_fd, proc_name, sizeof(proc_name) - 1);
+ if (r < 0)
+ bxt_err("Cannot read %s: %d", buf, errno);
close(proc_fd);
if (strlen(proc_name) > 0)