From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E4CD3A0C41; Tue, 7 Sep 2021 02:51:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 761A440DF8; Tue, 7 Sep 2021 02:51:45 +0200 (CEST) Received: from m12-17.163.com (m12-17.163.com [220.181.12.17]) by mails.dpdk.org (Postfix) with ESMTP id 67C294003D; Tue, 7 Sep 2021 02:51:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=ac6EY CoxIcNplOudREALSpkBCExIYqg+HroU+OS1b6E=; b=S7erq5urPYNNO4+bhyA0o 5JmlTuHZHmkj1NXmPWGcQz+u1zJtoMZHWRrnoUKpfqEQXEV/dLsIvNIoxCWWww/S Ze+556zmbOdvD3Ove56srPNz7SsmhafurO5/xUZcy+F4SNraDu27dZpoRHBxRz18 q2TaN37bqqNn70tGrRHoX4= Received: from DESKTOP-ONA2IA7.localdomain (unknown [223.104.159.137]) by smtp13 (Coremail) with SMTP id EcCowAC3JYqStzZhE7hTKw--.44310S4; Tue, 07 Sep 2021 08:51:38 +0800 (CST) From: Gaoxiang Liu To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, liugaoxiang@huawei.com, Gaoxiang Liu , stable@dpdk.org Date: Tue, 7 Sep 2021 08:51:27 +0800 Message-Id: <20210907005127.89-1-gaoxiangliu0@163.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210904142805.791-1-gaoxiangliu0@163.com> References: <20210904142805.791-1-gaoxiangliu0@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: EcCowAC3JYqStzZhE7hTKw--.44310S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wry8ur43XrW8Zw4DKrW3Wrg_yoWfZFcEvF srZayIqay0vrZa9345Cas7Z3y2kw47tF4FgF4UAr1Igw15tas0k3ZYyr95JF1UZrW7AFyU Cr4rGrZxtr1SqjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjf-PUUUUUU== X-Originating-IP: [223.104.159.137] X-CM-SenderInfo: xjdr5xxdqjzxjxq6il2tof0z/1tbiWxoHOlSIragnywAAsJ Subject: [dpdk-dev] [PATCH v2] vhost: add log print of socket path on adding connection X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- lib/vhost/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/socket.c b/lib/vhost/socket.c index d6f9414c4..c6548608a 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); -- 2.32.0