mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
parse_pid_stat(): use pr_err()
We do not want to use pr_perror() here, because 1. fscanf only sets errno in case it returns EOF 2. we are not really interested in errno value So use pr_err() instead. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
1408ead858
commit
11f2ce03da
@@ -247,7 +247,7 @@ int parse_pid_stat(pid_t pid, int pid_dir, struct proc_pid_stat *s)
|
||||
&s->exit_code);
|
||||
|
||||
if (n < 52) {
|
||||
pr_perror("Parsing %d's stat failed (#fields do not match)", pid);
|
||||
pr_err("Parsing %d's stat failed (#fields do not match)\n", pid);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user