[1/2] files-reg: make error message in clean_one_remap contain mntns path

Submitted by Pavel Tikhomirov on Dec. 10, 2018, 12:33 p.m.

Details

Message ID 20181210123356.5011-2-ptikhomirov@virtuozzo.com
State Accepted
Series "small fixups"
Headers show

Commit Message

Pavel Tikhomirov Dec. 10, 2018, 12:33 p.m.
rmntns_root - is fd number of opened mntns root directory, these info
doesn't help to identify mntns involved in logs, show path to these
mntns instead.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
---
 criu/files-reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/files-reg.c b/criu/files-reg.c
index c4f4e1616..a20589b56 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -722,7 +722,7 @@  static int clean_one_remap(struct remap_info *ri)
 	ret = unlinkat(rmntns_root, remap->rpath, remap->is_dir ? AT_REMOVEDIR : 0);
 	if (ret < 0) {
 		close(rmntns_root);
-		pr_perror("Couldn't unlink remap %d %s", rmntns_root, remap->rpath);
+		pr_perror("Couldn't unlink remap %s %s", path, remap->rpath);
 		return -1;
 	}
 	close(rmntns_root);