From 255cd497bd5dc42d17898005558d2480e65e32e2 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Fri, 27 Jan 2012 13:42:02 +0300 Subject: [PATCH] util: print warning if a image file is absent It may be legal. E.g. for zombie Signed-off-by: Andrey Vagin Acked-by: Pavel Emelyanov Signed-off-by: Cyrill Gorcunov --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 37b73a076..de22151f9 100644 --- a/util.c +++ b/util.c @@ -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; }