From 7096cf03dd17f3a5eeaec3046ba6b1625ed67da9 Mon Sep 17 00:00:00 2001 From: Kashyap Paidimarri Date: Wed, 16 Dec 2020 10:12:01 -0800 Subject: [PATCH] irmap: Reduce error log severity to warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These errors originate from the filesystem scanning in irmap.c and are mostly benign. Nevertheless, if they do result in a failed irmap lookup, that failed lookup is more interesting from an application perspective. Signed-off-by: Michał Mirosław --- criu/irmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/irmap.c b/criu/irmap.c index 7b9d77bc1f5..2cdc6607143 100644 --- a/criu/irmap.c +++ b/criu/irmap.c @@ -101,7 +101,7 @@ static int irmap_update_stat(struct irmap *i) pr_debug("Refresh stat for %s\n", i->path); if (fstatat(mntns_root, i->path + 1, &st, AT_SYMLINK_NOFOLLOW)) { - pr_perror("Can't stat %s", i->path); + pr_pwarn("Can't stat %s", i->path); return -1; } @@ -136,7 +136,7 @@ static int irmap_update_dir(struct irmap *t) pr_debug("Refilling %s dir\n", t->path); fd = openat(mntns_root, t->path + 1, O_RDONLY); if (fd < 0) { - pr_perror("Can't open %s", t->path); + pr_pwarn("Can't open %s", t->path); return -1; }