From 83fe016b44da5fc9fa8e44904699be4fa15b0484 Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Tue, 13 Dec 2022 18:09:02 +0300 Subject: [PATCH] sk-queue: print message when dumping nested fds from socket Printing info message when we go to nested fds will make easier to understand logs of unix sockets dumping. Signed-off-by: Pavel Tikhomirov (cherry picked from commit ae7cee5ef93efba90466bbf67d0e0367a05cc830) Signed-off-by: Ahmed Elaidy Reviewed-by: Alexander Mikhalitsyn --- criu/sk-queue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/criu/sk-queue.c b/criu/sk-queue.c index 46ef5bcb8..60311e3ab 100644 --- a/criu/sk-queue.c +++ b/criu/sk-queue.c @@ -92,6 +92,8 @@ static int dump_scm_rights(struct cmsghdr *ch, SkPacketEntry *pe) void *buf; ScmEntry *scme; + pr_info("Dumping scm rights (nested fds) id_for 0x%x\n", pe->id_for); + nr_fds = (ch->cmsg_len - sizeof(*ch)) / sizeof(int); fds = (int *)CMSG_DATA(ch);