Change-Id: Icdf26e6f8921dec7b884de8a25277d0d4e42b1fc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
for (n = 0, remaining = readb ; remaining > 0; remaining -= n) {
n = write(fd, buf, remaining);
if (n == -1) {
- syslog(LOG_ERR, "crash-pipe: Error while saving core file %s: %s. Removing core.\n",
- core_path, strerror(errno));
+ syslog(LOG_ERR, "crash-pipe: Error while saving core file %s: %d. Removing core.\n",
+ core_path, errno);
(void)unlink(core_path); // XXX check errors here too
goto out;
}
pid_t pid = fork();
/* handle error case */
if (pid < 0) {
- _E("fork: %s\n", strerror(errno));
+ _E("fork: %d\n", errno);
return pid;
}
/* handle child case */
continue;
subfd = openat(fd, de->d_name, O_RDONLY | O_DIRECTORY);
if (subfd < 0) {
- _SE("Couldn't openat %s: %s\n", de->d_name, strerror(errno));
+ _SE("Couldn't openat %s: %d\n", de->d_name, errno);
ret = -1;
continue;
}