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 C0165436D8; Wed, 13 Dec 2023 02:47:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 350DF42E9F; Wed, 13 Dec 2023 02:46:59 +0100 (CET) Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) by mails.dpdk.org (Postfix) with ESMTP id 5934242E75 for ; Wed, 13 Dec 2023 02:46:55 +0100 (CET) Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-6d9f514f796so3770207a34.3 for ; Tue, 12 Dec 2023 17:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702432014; x=1703036814; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=N3kV5ly3463R0EGCUH77lgu86dQlVi4yjhu8IwsBNlI=; b=Bp7F75e40ZPCqpcuVUISKCbrLS8JclsinluAVJ+BIdSD/gIMpGp+68Yb4f47JMDVDc yDyh0ikNj4OMAZtckc2kBgCUJhZSqWeD09mHhtE6msXr2UJNtuz/1NTZXX52uSpH8e35 45FaSk3xv6LwLSzZCzWSQ/vsiNPHvdnbdGNbufvoHXQfqRPcq6Rcp6VdLqC9I/Dtl802 ZX3gCR7byqdw98roBlStyTbqnvf4BXnJrGi3Vt/m7OqjkFwZn5k3HBIaw1MY+AQ2bUt9 YGHKqmQ5cl5LeJaZZC8vCOb8wyqY0ck9VCc3CaLUMhdL13KJH7vAHBfrGVfUSXi+pAXr VHdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702432014; x=1703036814; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N3kV5ly3463R0EGCUH77lgu86dQlVi4yjhu8IwsBNlI=; b=e/dVSqzNRm62TFxupGjU7g691X4aMmVvYx4ZwPcT6BQyzs7z2RfaoGUBLrsqK9g7mU XFqC7mZdeQuFvGS1OyoTZswYjhuWUD00sBk/lI231n5XoeHFqY4AwgmqDWk2Cc91pc3B IbVxML9li1R5Z3byR3QZURetN5u6eMOETu6LuHJ2x1Ei9Angxt/gR5MrOef0VPP27RRB p1zfbbI6Youd1/3wnpW9J4lAJtrRcYk78Uf5lTQOZ6kteDv6RK78ebrWpcfpdaJtVqjF /rgeh502VsViIjkq0bjA3+F0sRXO9JFtD2mtPF4cg0UZUVRwxQZ9mwN1TQAycTJ83HJh 1gVQ== X-Gm-Message-State: AOJu0YwTXVS2w60BB/qHg8hvG4wAgU3EykyyUxtTOL3doHAvVyzw0Gtk wsFouYJnsBWTMSIIISvw71zC9VJR8a4Me8JzKgOwLQ== X-Google-Smtp-Source: AGHT+IFx/ZtpkkShV6z5eAn1W8MpQuPHOLU4d6aZ90xtHMzHl6LMjcpsp62ZuRbgsUqVDJiRrQEHOw== X-Received: by 2002:a9d:6e18:0:b0:6da:3240:3371 with SMTP id e24-20020a9d6e18000000b006da32403371mr590782otr.9.1702432014715; Tue, 12 Dec 2023 17:46:54 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id f7-20020aa79d87000000b006ce5b4ade28sm8988375pfq.174.2023.12.12.17.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:46:54 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maxime Coquelin , Chenbo Xia Subject: [PATCH 16/26] net/virtio: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:32 -0800 Message-ID: <20231213014408.612051-17-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213014408.612051-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Want datapath logs to use own logtype. Signed-off-by: Stephen Hemminger --- drivers/net/virtio/virtio_logs.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/virtio/virtio_logs.h b/drivers/net/virtio/virtio_logs.h index 9b1b1defc5a6..0447ee961fb6 100644 --- a/drivers/net/virtio/virtio_logs.h +++ b/drivers/net/virtio/virtio_logs.h @@ -14,23 +14,25 @@ extern int virtio_logtype_init; #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") +extern int virtio_logtype_driver; +#define PMD_DRV_LOG(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, virtio_logtype_driver, \ + "%s(): " fmt "\n", __func__, ## args) + #ifdef RTE_LIBRTE_VIRTIO_DEBUG_RX #define PMD_RX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s() rx: " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, virtio_logtype_driver, \ + "%s() rx: " fmt "\n", __func__, ## args) #else #define PMD_RX_LOG(level, fmt, args...) do { } while(0) #endif #ifdef RTE_LIBRTE_VIRTIO_DEBUG_TX #define PMD_TX_LOG(level, fmt, args...) \ - RTE_LOG(level, PMD, "%s() tx: " fmt "\n", __func__, ## args) + rte_log(RTE_LOG_ ## level, virtio_logtype_driver, \ + "%s() tx: " fmt "\n", __func__, ## args) #else #define PMD_TX_LOG(level, fmt, args...) do { } while(0) #endif -extern int virtio_logtype_driver; -#define PMD_DRV_LOG(level, fmt, args...) \ - rte_log(RTE_LOG_ ## level, virtio_logtype_driver, \ - "%s(): " fmt "\n", __func__, ## args) - #endif /* _VIRTIO_LOGS_H_ */ -- 2.42.0