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 CBB5CA00C2; Fri, 1 Jul 2022 09:57:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8705642B6E; Fri, 1 Jul 2022 09:57:36 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 5B18F42B6C for ; Fri, 1 Jul 2022 09:57:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656662254; 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=kkpU7NDcp9LJ9bknlwVcOebYEalbBvbOpy68MAco+6c=; b=VMIXP3HOYcB3t0C80DW/XN//wBlfxAYgYW3JCjg2qEHNxzpLpH62NZJQkoS65EQpvNoPiw VWQexdHc2OxItoWI3cy/n5lnd+yyPDW35VDEeyfK1mdmf+lk1COdXpCZ2asH8UKQw0rjqw 7R21RVJ+8BTdKjdiWvPQ9Q6Jg01CCPc= 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-179-Ma9IKsQ1OxCSzwQPCS3i_g-1; Fri, 01 Jul 2022 03:57:31 -0400 X-MC-Unique: Ma9IKsQ1OxCSzwQPCS3i_g-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 828CB3C0CD5C; Fri, 1 Jul 2022 07:57:31 +0000 (UTC) Received: from fchome.redhat.com (unknown [10.40.194.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA5AE2166B26; Fri, 1 Jul 2022 07:57:30 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com Subject: [PATCH v2 3/4] vhost: improve some datapath log messages Date: Fri, 1 Jul 2022 09:55:10 +0200 Message-Id: <20220701075511.2176198-4-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 Those messages were missed when adding socket context. Fix this. Signed-off-by: David Marchand Reviewed-by: Maxime Coquelin --- lib/vhost/vhost.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vhost/vhost.h b/lib/vhost/vhost.h index 4ebcb7448a..810bc71c9d 100644 --- a/lib/vhost/vhost.h +++ b/lib/vhost/vhost.h @@ -652,7 +652,7 @@ extern int vhost_data_log_level; } \ snprintf(packet + strnlen(packet, VHOST_MAX_PRINT_BUFF), VHOST_MAX_PRINT_BUFF - strnlen(packet, VHOST_MAX_PRINT_BUFF), "\n"); \ \ - VHOST_LOG_DATA(DEBUG, "%s", packet); \ + VHOST_LOG_DATA(DEBUG, "(%s) %s", device->ifname, packet); \ } while (0) #else #define PRINT_PACKET(device, addr, size, header) do {} while (0) @@ -866,8 +866,8 @@ vhost_vring_call_split(struct virtio_net *dev, struct vhost_virtqueue *vq) vq->signalled_used = new; vq->signalled_used_valid = true; - VHOST_LOG_DATA(DEBUG, "%s: used_event_idx=%d, old=%d, new=%d\n", - __func__, + VHOST_LOG_DATA(DEBUG, "(%s) %s: used_event_idx=%d, old=%d, new=%d\n", + dev->ifname, __func__, vhost_used_event(vq), old, new); -- 2.36.1