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:
committed by
Andrei Vagin
parent
5e3b07b95d
commit
f3be776ccc
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user