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 76D5EA0C53; Sat, 4 Sep 2021 16:28:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA8A2410D8; Sat, 4 Sep 2021 16:28:27 +0200 (CEST) Received: from m12-17.163.com (m12-17.163.com [220.181.12.17]) by mails.dpdk.org (Postfix) with ESMTP id 6336D40DDD; Sat, 4 Sep 2021 16:28:23 +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=mPXCm t20Kt/jEhpWQcs9y7D76154FPMUO4JjOkHVZYQ=; b=Fr7B5q5toXIfsRDNfeNZv PoxiUkYnd5iX93bf5DS2FWTMi/Or29AUEOmCYNA3d4Y+uSqa4u0+SQmdAEKWRuEH 3VZthodWSOp/lOpcCQn77f+Qli74aofXMmQukvo2ofT3CgthoG159twlab6wvLgX FEkVHeUm8T2C+GRdvDznJs= Received: from DESKTOP-ONA2IA7.localdomain (unknown [39.182.52.167]) by smtp13 (Coremail) with SMTP id EcCowAD31RJ5gjNh+XKUKQ--.39584S4; Sat, 04 Sep 2021 22:28:20 +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: Sat, 4 Sep 2021 22:28:05 +0800 Message-Id: <20210904142805.791-1-gaoxiangliu0@163.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: EcCowAD31RJ5gjNh+XKUKQ--.39584S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wry8ur1ktF1DKFy3Zry5urg_yoWfuFcEvF 47ZayxXay8Zrsav345Cas7Z3yIkw47tF10gF48Ar1Sgr15J3s0kanYyrWrJF18ZrW3JFyj krn8GrZFqr1aqjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUqg4DUUUUU== X-Originating-IP: [39.182.52.167] X-CM-SenderInfo: xjdr5xxdqjzxjxq6il2tof0z/xtbBQgQEOl++NIR7XgAAsM Subject: [dpdk-dev] [PATCH] 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 more clearer. Fixes: a277c7159876 ("vhost: refactor code structure") 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