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 <ptikhomirov@virtuozzo.com>

(cherry picked from commit ae7cee5ef93efba90466bbf67d0e0367a05cc830)
Signed-off-by: Ahmed Elaidy <elaidya225@gmail.com>
Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
This commit is contained in:
Pavel Tikhomirov 2022-12-13 18:09:02 +03:00 committed by Alexander Mikhalitsyn
parent a4f00387b8
commit 83fe016b44

View file

@ -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);