mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
mount: always report ->mnt_id as decimal
validate_mounts() prints ->mnt_id in hex when it reports the failure. This complicates the understanding because this ->mnt_id is printed as decimal elsewhere, including /proc/$pid/mountinfo. parse_mountinfo() adds "0x" at least and this is just pr_info(), but lets change it too. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Andrew Vagin <avagin@openvz.org> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
8329f06145
commit
57db932a0a
@@ -1034,7 +1034,7 @@ struct mount_info *parse_mountinfo(pid_t pid, struct ns_id *nsid)
|
||||
goto err;
|
||||
}
|
||||
|
||||
pr_info("\ttype %s source %s mnt_id %#x s_dev %#x %s @ %s flags %#x options %s\n",
|
||||
pr_info("\ttype %s source %s mnt_id %d s_dev %#x %s @ %s flags %#x options %s\n",
|
||||
fst ? : new->fstype->name, new->source,
|
||||
new->mnt_id, new->s_dev, new->root, new->mountpoint,
|
||||
new->flags, new->options);
|
||||
|
Reference in New Issue
Block a user