From: Gaoxiang Liu Date: Tue, 7 Sep 2021 00:51:27 +0000 (+0800) Subject: vhost: log socket path on adding connection X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e53084d84b0f2ae67df8d785e8d79df530b21a50;p=dpdk.git vhost: log socket path on adding connection Add log print of socket path in vhost_user_add_connection. It's useful when adding a mass of socket connections, because the information of every connection is clearer. Fixes: 8f972312b8f4 ("vhost: support vhost-user") Cc: stable@dpdk.org Signed-off-by: Gaoxiang Liu Reviewed-by: Chenbo Xia --- diff --git a/lib/vhost/socket.c b/lib/vhost/socket.c index d6f9414c4d..c6548608a3 100644 --- a/lib/vhost/socket.c +++ b/lib/vhost/socket.c @@ -243,7 +243,7 @@ vhost_user_add_connection(int fd, struct vhost_user_socket *vsocket) dev->async_copy = 1; } - VHOST_LOG_CONFIG(INFO, "new device, handle is %d\n", vid); + VHOST_LOG_CONFIG(INFO, "new device, handle is %d, path is %s\n", vid, vsocket->path); if (vsocket->notify_ops->new_connection) { ret = vsocket->notify_ops->new_connection(vid);