2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

util: print warning if a image file is absent

It may be legal. E.g. for zombie

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Andrey Vagin
2012-01-27 13:42:02 +03:00
committed by Cyrill Gorcunov
parent d4cfba8947
commit 255cd497bd

2
util.c
View File

@@ -181,7 +181,7 @@ int open_image_ro_nocheck(const char *fmt, int pid)
if (tmp == 0)
tmp = open(path, O_RDONLY);
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;
}