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: 8f972312b8
("vhost: support vhost-user")
Cc: stable@dpdk.org
Signed-off-by: Gaoxiang Liu <liugaoxiang@huawei.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
This commit is contained in:
parent
5d903aee8a
commit
e53084d84b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user