From 3fd3a376fd00dedb3e5af49bbe41c337b4ab2a02 Mon Sep 17 00:00:00 2001 From: Andrey Zhadchenko Date: Fri, 3 Jul 2020 11:31:01 +0300 Subject: [PATCH] mount: adjust log level for get_clean_mnt In case get_clean_mnt fails open_mountpoint is still able to resolve mounts by helper process or print error in the worst case. Using pr_warn instead of pr_perror. Signed-off-by: Andrey Zhadchenko --- criu/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/mount.c b/criu/mount.c index 2d6ee66db..d6841b2bd 100644 --- a/criu/mount.c +++ b/criu/mount.c @@ -1111,8 +1111,8 @@ static char *get_clean_mnt(struct mount_info *mi, char *mnt_path_tmp, char *mnt_ } if (mount(mi->mountpoint, mnt_path, NULL, MS_BIND, NULL)) { - pr_perror("Can't bind-mount %d:%s to %s", - mi->mnt_id, mi->mountpoint, mnt_path); + pr_warn("Can't bind-mount %d:%s to %s: %s\n", + mi->mnt_id, mi->mountpoint, mnt_path, strerror(errno)); rmdir(mnt_path); return NULL; }