Commit 6f40cfb5 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

files-reg: Use pr_err instead of pr_perror if fd not found

Otherwise

 | (00.002843)      1: Error (files-reg.c:522): Can't find regfile for 0
 | : Success

which is inappropriate here.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5f5306ed
......@@ -519,7 +519,7 @@ int open_path_by_id(u32 id, int (*open_cb)(struct reg_file_info *, void *), void
fd = find_file_desc_raw(FD_TYPES__REG, id);
if (fd == NULL) {
pr_perror("Can't find regfile for %#x\n", id);
pr_err("Can't find regfile for %#x\n", id);
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