Commit b6f7d4a6 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

files-reg: Print file name on error

In case if there some error happened better to
know which exactly file failed on open, for example

 | Error (files-reg.c:535): Can't open file /lib64/libgcc_s-4.4.7-20120601.so.1 on restore: No such file or directory
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2eeb3664
...@@ -532,7 +532,7 @@ static int do_open_reg(struct reg_file_info *rfi, void *arg) ...@@ -532,7 +532,7 @@ static int do_open_reg(struct reg_file_info *rfi, void *arg)
fd = open(rfi->path, rfi->rfe->flags); fd = open(rfi->path, rfi->rfe->flags);
if (fd < 0) { if (fd < 0) {
pr_perror("Can't open file on restore"); pr_perror("Can't open file %s on restore", rfi->path);
return fd; return fd;
} }
......
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