diff --git a/criu/cr-dedup.c b/criu/cr-dedup.c index 71b7a9cc3..a09873f94 100644 --- a/criu/cr-dedup.c +++ b/criu/cr-dedup.c @@ -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; } diff --git a/criu/mem.c b/criu/mem.c index 167838b98..e11f4f492 100644 --- a/criu/mem.c +++ b/criu/mem.c @@ -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 {