2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

Drop \n from pr_perror

Another pr_perror spring cleaning time!

As pr_perror adds a semicolon, an strerror(errno), and a newline,
there's no need to add one manually.

Brought to you by

	for f in $(git grep -l pr_perror); do
		test -f $f || continue
		echo $f
		sed -i '\%^[[:space:]]*pr_perror(.*\\n"%s/\\n//' $f
	done

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-04-22 13:15:25 -07:00
committed by Andrei Vagin
parent 5e3b07b95d
commit f3be776ccc
29 changed files with 76 additions and 76 deletions

View File

@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
test_waitsig();
if (unlink(path)) {
pr_perror("Unable to remove %s\n", path);
pr_perror("Unable to remove %s", path);
return 1;
}
if (rmdir(dir)) {