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 3EDE2A00C2; Fri, 1 Jul 2022 09:57:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 145A140E03; Fri, 1 Jul 2022 09:57:34 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 4F0EE40E03 for ; Fri, 1 Jul 2022 09:57:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656662251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oQ0DCKdR/1u3uTXOQa1v7VbR7aU0gjPrJea+ZEH8++I=; b=ISVyxY/B+FeGVyPqLOutkFLXhpRP5uidqy6hJNJE+sz8iMaOs5WB0d6ubZWzY9h60+9+vi Cw3m2vs5Z53IjUP2UzEz8VfVooBnMESrxOh7q+mbYj1vRGsfrD9JoQ6RU9aa4NHsgplTI1 Koz2eCSjC8BlTt8HXfo1uYUrZkjUyzo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-308-kx2v8WNCPwyy5kzAXadIpQ-1; Fri, 01 Jul 2022 03:57:28 -0400 X-MC-Unique: kx2v8WNCPwyy5kzAXadIpQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 694F8101A588; Fri, 1 Jul 2022 07:57:28 +0000 (UTC) Received: from fchome.redhat.com (unknown [10.40.194.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id 58F202166B26; Fri, 1 Jul 2022 07:57:27 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com, Yuan Wang , Xuan Ding Subject: [PATCH v2 2/4] vhost: restore device information in log messages Date: Fri, 1 Jul 2022 09:55:09 +0200 Message-Id: <20220701075511.2176198-3-david.marchand@redhat.com> In-Reply-To: <20220701075511.2176198-1-david.marchand@redhat.com> References: <20220627092728.78214-1-david.marchand@redhat.com> <20220701075511.2176198-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 device information in the log messages was dropped. Fixes: 52ade97e3641 ("vhost: fix physical address mapping") Signed-off-by: David Marchand Reviewed-by: Chenbo Xia --- lib/vhost/vhost_user.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index 2b9a3b69fa..f324f822d6 100644 --- a/lib/vhost/vhost_user.c +++ b/lib/vhost/vhost_user.c @@ -144,7 +144,8 @@ async_dma_map(struct virtio_net *dev, bool do_map) return; /* DMA mapping errors won't stop VHOST_USER_SET_MEM_TABLE. */ - VHOST_LOG_CONFIG(ERR, "DMA engine map failed\n"); + VHOST_LOG_CONFIG(ERR, "(%s) DMA engine map failed\n", + dev->ifname); } } @@ -160,7 +161,8 @@ async_dma_map(struct virtio_net *dev, bool do_map) if (rte_errno == EINVAL) return; - VHOST_LOG_CONFIG(ERR, "DMA engine unmap failed\n"); + VHOST_LOG_CONFIG(ERR, "(%s) DMA engine unmap failed\n", + dev->ifname); } } } @@ -945,7 +947,8 @@ add_one_guest_page(struct virtio_net *dev, uint64_t guest_phys_addr, dev->max_guest_pages * sizeof(*page), RTE_CACHE_LINE_SIZE); if (dev->guest_pages == NULL) { - VHOST_LOG_CONFIG(ERR, "cannot realloc guest_pages\n"); + VHOST_LOG_CONFIG(ERR, "(%s) cannot realloc guest_pages\n", + dev->ifname); rte_free(old_pages); return -1; } -- 2.36.1