[Devel] criu: add more information about control messages

Submitted by Andrei Vagin on Feb. 16, 2017, 4:29 p.m.

Details

Message ID 1487262566-8584-1-git-send-email-avagin@openvz.org
State New
Series "criu: add more information about control messages"
Headers show

Commit Message

Andrei Vagin Feb. 16, 2017, 4:29 p.m.
From: Andrei Vagin <avagin@virtuozzo.com>

We need to know a type of unsupported control messages.

https://jira.sw.ru/browse/PSBM-60643
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
---
 criu/sk-queue.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/criu/sk-queue.c b/criu/sk-queue.c
index be33ca1..f68d26f 100644
--- a/criu/sk-queue.c
+++ b/criu/sk-queue.c
@@ -125,6 +125,8 @@  static int dump_packet_cmsg(struct msghdr *mh, SkPacketEntry *pe, int flags)
 				return -1;
 			continue;
 		}
+		pr_err("cmsg: len %ld type %d level %d\n",
+			ch->cmsg_len, ch->cmsg_type, ch->cmsg_level);
 		pr_err("Control messages in queue, not supported\n");
 		return -1;
 	}