Skip to content

Commit

Permalink
irmap: Reduce error log severity to warning.
Browse files Browse the repository at this point in the history
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 <emmir@google.com>
  • Loading branch information
kashyapp authored and osctobe committed Jun 21, 2023
1 parent 156c960 commit 7096cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions criu/irmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 7096cf0

Please sign in to comment.