Commit 255cd497 authored by Andrey Vagin's avatar Andrey Vagin Committed by Cyrill Gorcunov

util: print warning if a image file is absent

It may be legal. E.g. for zombie
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent d4cfba89
...@@ -181,7 +181,7 @@ int open_image_ro_nocheck(const char *fmt, int pid) ...@@ -181,7 +181,7 @@ int open_image_ro_nocheck(const char *fmt, int pid)
if (tmp == 0) if (tmp == 0)
tmp = open(path, O_RDONLY); tmp = open(path, O_RDONLY);
if (tmp < 0) if (tmp < 0)
pr_perror("Can't open image %s for %d\n", fmt, pid); pr_warning("Can't open image %s for %d: %m\n", fmt, pid);
return tmp; return tmp;
} }
......
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