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 F079AA0552; Mon, 27 Jun 2022 11:27:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 29C404282F; Mon, 27 Jun 2022 11:27:51 +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 429D24282B for ; Mon, 27 Jun 2022 11:27:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656322068; 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=cAfIrhG7p09Wymf+FB6Iu7kLcBYFCj7cbVzIp1TuZxQ=; b=BK0IzhwaVMDPtHGWpOkS7oSd63yXXQyu2KVs9hfMUTgFg/yVF70kHEtcneoyHPOKH0Gr0t IECgPe33wL1P81aD9HP8Wl4fwaYuCXxMuVtkHbeUdILeI734N75DeoDoUO8EjwhX5N7y/5 m37VLxHth5RRFn6j5VZj5xa/dzQPVB8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-86-FLJFLOwCOiOHvnLfmUXWpw-1; Mon, 27 Jun 2022 05:27:45 -0400 X-MC-Unique: FLJFLOwCOiOHvnLfmUXWpw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1B3411C07820; Mon, 27 Jun 2022 09:27:45 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.192.104]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02A4818EA3; Mon, 27 Jun 2022 09:27:43 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com, Yuan Wang , Xuan Ding Subject: [PATCH 2/4] vhost: restore device information in log messages Date: Mon, 27 Jun 2022 11:27:26 +0200 Message-Id: <20220627092728.78214-3-david.marchand@redhat.com> In-Reply-To: <20220627092728.78214-1-david.marchand@redhat.com> References: <20220627092728.78214-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 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 --- 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