mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
sk-unix: Use pr_warn instead of pr_perror if socket path can't be stat'ed
The error message is rather confusing people. In worst case (if it happened that we need this uncollected socket), criu will print out real error message later. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
75ebb6d02c
commit
d7141750d2
@@ -349,8 +349,8 @@ static int unix_collect_one(const struct unix_diag_msg *m,
|
||||
uv = RTA_DATA(tb[UNIX_DIAG_VFS]);
|
||||
snprintf(rpath, sizeof(rpath), ".%s", name);
|
||||
if (fstatat(mntns_root, rpath, &st, 0)) {
|
||||
pr_perror("Can't stat socket %#x(%s)",
|
||||
m->udiag_ino, rpath);
|
||||
pr_warn("Can't stat socket %#x(%s), skipping: %m (err %d)\n",
|
||||
m->udiag_ino, rpath, errno);
|
||||
goto skip;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user