mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
criu: don't use errno for pr_error
There is no need to, as pr_error already adds strerror(errno) to the error message. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
e6bb9973cc
commit
96dbfc0c98
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ int cr_dedup(void)
|
|||
|
||||
dirp = opendir(CR_PARENT_LINK);
|
||||
if (dirp == NULL) {
|
||||
pr_perror("Can't enter previous snapshot folder, error=%d", errno);
|
||||
pr_perror("Can't enter previous snapshot folder");
|
||||
ret = -1;
|
||||
goto err;
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ int cr_dedup(void)
|
|||
ent = readdir(dirp);
|
||||
if (ent == NULL) {
|
||||
if (errno) {
|
||||
pr_perror("Failed readdir, error=%d", errno);
|
||||
pr_perror("Failed readdir");
|
||||
ret = -1;
|
||||
goto err;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ int do_task_reset_dirty_track(int pid)
|
|||
if (errno == EINVAL) /* No clear-soft-dirty in kernel */
|
||||
ret = 1;
|
||||
else {
|
||||
pr_perror("Can't reset %d's dirty memory tracker (%d)", pid, errno);
|
||||
pr_perror("Can't reset %d's dirty memory tracker", pid);
|
||||
ret = -1;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue