Commit 11f2ce03 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Cyrill Gorcunov

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: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 1408ead8
...@@ -247,7 +247,7 @@ int parse_pid_stat(pid_t pid, int pid_dir, struct proc_pid_stat *s) ...@@ -247,7 +247,7 @@ int parse_pid_stat(pid_t pid, int pid_dir, struct proc_pid_stat *s)
&s->exit_code); &s->exit_code);
if (n < 52) { 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; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment