Commit 9792a860 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

dump: Fix arguments types in printing

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 08569cbc
...@@ -255,11 +255,11 @@ static int dump_one_fd(pid_t pid, int pid_fd_dir, int lfd, ...@@ -255,11 +255,11 @@ static int dump_one_fd(pid_t pid, int pid_fd_dir, int lfd,
int err = -1; int err = -1;
if (lfd < 0) { 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) if (err != 1)
return err; 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; return -1;
} }
......
...@@ -165,7 +165,7 @@ static int dump_one_unix(struct socket_desc *_sk, int fd, struct cr_fdset *cr_fd ...@@ -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_ptr_safe(cr_fdset->fds[CR_FD_UNIXSK], &ue, err);
write_safe(cr_fdset->fds[CR_FD_UNIXSK], sk->name, ue.namelen, 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("Dumping", sk);
show_one_unix_img("Dumped", &ue); show_one_unix_img("Dumped", &ue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment