mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
dump: Fix arguments types in printing
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
08569cbc5f
commit
9792a860b3
2 changed files with 3 additions and 3 deletions
|
|
@ -255,11 +255,11 @@ static int dump_one_fd(pid_t pid, int pid_fd_dir, int lfd,
|
|||
int err = -1;
|
||||
|
||||
if (lfd < 0) {
|
||||
err = try_dump_socket(pid_fd_dir, p->fd_name, cr_fdset);
|
||||
err = try_dump_socket(pid, p->fd_name, cr_fdset);
|
||||
if (err != 1)
|
||||
return err;
|
||||
|
||||
pr_perror("Failed to open %s/%d\n", pid_fd_dir, p->fd_name);
|
||||
pr_perror("Failed to open %d/%d\n", pid_fd_dir, p->fd_name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ static int dump_one_unix(struct socket_desc *_sk, int fd, struct cr_fdset *cr_fd
|
|||
write_ptr_safe(cr_fdset->fds[CR_FD_UNIXSK], &ue, err);
|
||||
write_safe(cr_fdset->fds[CR_FD_UNIXSK], sk->name, ue.namelen, err);
|
||||
|
||||
pr_info("Dumping unix socket at %s\n", fd);
|
||||
pr_info("Dumping unix socket at %d\n", fd);
|
||||
show_one_unix("Dumping", sk);
|
||||
show_one_unix_img("Dumped", &ue);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue