[CRIU] [PATCH cr 4/4] log: fix log messages

Andrey Vagin avagin at openvz.org
Wed May 2 06:42:45 EDT 2012


They looks better in this state

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 files.c |   12 ++++++------
 pipes.c |    2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/files.c b/files.c
index c8f503a..4cc53f1 100644
--- a/files.c
+++ b/files.c
@@ -495,7 +495,7 @@ static int open_transport_fd(int pid, struct fdinfo_entry *fe, struct file_desc
 
 	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)
 		if ((fle->pid == pid) && (fle->fe.fd == fe->fd))
@@ -518,7 +518,7 @@ static int open_transport_fd(int pid, struct fdinfo_entry *fe, struct file_desc
 	if (ret < 0)
 		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());
 
 	return 0;
@@ -529,11 +529,11 @@ int send_fd_to_peer(int fd, struct fdinfo_list_entry *fle, int tsk)
 	struct sockaddr_un saddr;
 	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);
 	transport_name_gen(&saddr, &len,
 			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);
 }
 
@@ -562,11 +562,11 @@ static int open_fd(int pid, struct fdinfo_entry *fe, struct file_desc *d)
 		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) {
 		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)
 				continue;
 
diff --git a/pipes.c b/pipes.c
index 454c4f3..a9859ce 100644
--- a/pipes.c
+++ b/pipes.c
@@ -256,7 +256,7 @@ static int open_pipe(struct file_desc *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)
 		return recv_pipe_fd(pi);
-- 
1.7.1



More information about the CRIU mailing list