[CRIU] [PATCH] net: unix -- Print collected socket names
Pavel Emelyanov
xemul at parallels.com
Thu Jul 11 11:10:45 EDT 2013
On 07/11/2013 06:13 PM, Cyrill Gorcunov wrote:
> Quite convenient to know which exactly names are used.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> sk-unix.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/sk-unix.c b/sk-unix.c
> index 750e9cf..c881f9b 100644
> --- a/sk-unix.c
> +++ b/sk-unix.c
> @@ -819,7 +819,9 @@ static int collect_one_unixsk(void *o, ProtobufCMessage *base)
> futex_init(&ui->bound);
> ui->peer = NULL;
> ui->flags = 0;
> - pr_info(" `- Got %#x peer %#x\n", ui->ue->ino, ui->ue->peer);
> + pr_info(" `- Got %#x peer %#x (name %s)\n",
> + ui->ue->ino, ui->ue->peer,
> + ui->name ? (ui->name[0] ? ui->name : &ui->name[1]) : "-");
> file_desc_add(&ui->d, ui->ue->id, &unix_desc_ops);
> list_add_tail(&ui->list, &unix_sockets);
>
>
Applied
More information about the CRIU
mailing list