[13/19] unix: break_connected -- Add a log recod

Submitted by Cyrill Gorcunov on Sept. 14, 2018, 2:08 p.m.

Details

Message ID 20180914140842.6462-14-gorcunov@gmail.com
State New
Series "unix: Add support for bindmounted dgram sockets"
Headers show

Commit Message

Cyrill Gorcunov Sept. 14, 2018, 2:08 p.m.
For better debug

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/sk-unix.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index 0e2ea4472280..232b213d02b4 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -1870,6 +1870,8 @@  static int break_connected(struct unix_sk_info *ui, int sk)
 {
 	if (ui->ue->type == SOCK_DGRAM) {
 		struct sockaddr_un addr = { .sun_family = AF_UNSPEC };
+		pr_debug("Break connected id %#x ino %d\n",
+			 ui->ue->id, ui->ue->ino);
 		/*
 		 * socketpair() assigns sks[1] as a peer of sks[0]
 		 * (and vice versa). But in this case (not zero peer)