Commit 10b46351 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

log: fix log messages

They looks better in this state
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f0decea7
...@@ -494,7 +494,7 @@ static int open_transport_fd(int pid, struct fdinfo_entry *fe, struct file_desc ...@@ -494,7 +494,7 @@ static int open_transport_fd(int pid, struct fdinfo_entry *fe, struct file_desc
transport_name_gen(&saddr, &sun_len, getpid(), fe->fd); transport_name_gen(&saddr, &sun_len, getpid(), fe->fd);
pr_info("\tCreate transport fd for %d\n", fe->fd); pr_info("\t\tCreate transport fd %s\n", saddr.sun_path + 1);
list_for_each_entry(fle, &d->fd_info_head, desc_list) list_for_each_entry(fle, &d->fd_info_head, desc_list)
if ((fle->pid == pid) && (fle->fe.fd == fe->fd)) if ((fle->pid == pid) && (fle->fe.fd == fe->fd))
...@@ -517,7 +517,7 @@ static int open_transport_fd(int pid, struct fdinfo_entry *fe, struct file_desc ...@@ -517,7 +517,7 @@ static int open_transport_fd(int pid, struct fdinfo_entry *fe, struct file_desc
if (ret < 0) if (ret < 0)
return -1; return -1;
pr_info("Wake up fdinfo pid=%d fd=%d\n", fle->pid, fle->fe.fd); pr_info("\t\tWake up fdinfo pid=%d fd=%d\n", fle->pid, fle->fe.fd);
futex_set_and_wake(&fle->real_pid, getpid()); futex_set_and_wake(&fle->real_pid, getpid());
return 0; return 0;
...@@ -528,11 +528,11 @@ int send_fd_to_peer(int fd, struct fdinfo_list_entry *fle, int tsk) ...@@ -528,11 +528,11 @@ int send_fd_to_peer(int fd, struct fdinfo_list_entry *fle, int tsk)
struct sockaddr_un saddr; struct sockaddr_un saddr;
int len; int len;
pr_info("Wait fdinfo pid=%d fd=%d\n", fle->pid, fle->fe.fd); pr_info("\t\tWait fdinfo pid=%d fd=%d\n", fle->pid, fle->fe.fd);
futex_wait_while(&fle->real_pid, 0); futex_wait_while(&fle->real_pid, 0);
transport_name_gen(&saddr, &len, transport_name_gen(&saddr, &len,
futex_get(&fle->real_pid), fle->fe.fd); futex_get(&fle->real_pid), fle->fe.fd);
pr_info("Send fd %d to %s\n", fd, saddr.sun_path + 1); pr_info("\t\tSend fd %d to %s\n", fd, saddr.sun_path + 1);
return send_fd(tsk, &saddr, len, fd); return send_fd(tsk, &saddr, len, fd);
} }
...@@ -561,11 +561,11 @@ static int open_fd(int pid, struct fdinfo_entry *fe, struct file_desc *d) ...@@ -561,11 +561,11 @@ static int open_fd(int pid, struct fdinfo_entry *fe, struct file_desc *d)
return -1; return -1;
} }
pr_info("\tCreate fd for %d\n", fe->fd); pr_info("\t\tCreate fd for %d\n", fe->fd);
list_for_each_entry(fle, &d->fd_info_head, desc_list) { list_for_each_entry(fle, &d->fd_info_head, desc_list) {
if (pid == fle->pid) { if (pid == fle->pid) {
pr_info("\t\tGoing to dup %d into %d\n", fe->fd, fle->fe.fd); pr_info("\t\t\tGoing to dup %d into %d\n", fe->fd, fle->fe.fd);
if (fe->fd == fle->fe.fd) if (fe->fd == fle->fe.fd)
continue; continue;
......
...@@ -257,7 +257,7 @@ static int open_pipe(struct file_desc *d) ...@@ -257,7 +257,7 @@ static int open_pipe(struct file_desc *d)
pi = container_of(d, struct pipe_info, d); pi = container_of(d, struct pipe_info, d);
pr_info("\tCreating pipe pipe_id=%#x id=%#x\n", pi->pe.pipe_id, pi->pe.id); pr_info("\t\tCreating pipe pipe_id=%#x id=%#x\n", pi->pe.pipe_id, pi->pe.id);
if (!pi->create) if (!pi->create)
return recv_pipe_fd(pi); return recv_pipe_fd(pi);
......
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