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 064A8436D9; Wed, 13 Dec 2023 05:20:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A38A142ED0; Wed, 13 Dec 2023 05:19:32 +0100 (CET) Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) by mails.dpdk.org (Postfix) with ESMTP id 4F58942EBE for ; Wed, 13 Dec 2023 05:19:28 +0100 (CET) Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-35da160de2bso27732665ab.1 for ; Tue, 12 Dec 2023 20:19:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441167; x=1703045967; 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=IHhjb2EorDRi+H13FCMeEIF6gYn9XQzoWGkAgUBDE3w=; b=eAUgfTAQdoCnRjAFAZQKhCd3GWJGz/mGJIY8d8NYqHEEJVQll8D8VothyBwfVIpaIM P+akOlUwLc/2rLBjwTIQ3gh7SI4sr6sXE/BXzVyC7t9/qbxQChEwtgc72/Yd1z06YHYh 9EwsiTSR+cHI92L3kTVvsP7n0idoirGPjmUID6j9eW97u9Hrqb/zZeCAgSMLx7qKvkO7 3O+UYnRRz3ksAiyYezZ0fLXf6FfxMRr8xluLfSN3XFc3HzYeewLF+M0abhFxcEKumY3B TflLc4fVQa/LNCQrO8qEHDqiuaa04bzWmveQkqXPrt7ykqR7r/eKeww+fMSWoL/VWO+Y znbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441167; x=1703045967; 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=IHhjb2EorDRi+H13FCMeEIF6gYn9XQzoWGkAgUBDE3w=; b=khFbXd5HpBb8pGNiIdrjYoxFOEp6UyK9jbbOPFowIgb0UB+Jo0j06Gu6PzX1N576jX g2ihLt1xlceHodbnerDpOBwvSHPV4VDFIZfMZHVKkN08EnwxSwTYxhPTDnNGwq8DSbtL /UmhjLWml3kLq0qAJaH+R33by3Bk5IHMt5fzae1P/soUzUxW3jf5DbUjw9fVMLZQh+08 ejG6eCBNuAfhaUDrOZxbW80OHsTbCaShqKWkblZHXHLPUdsf6F4xUgeq8Ap5cHfoNcxA Kqb6PhB+F0TQNkJsotR4hP3mSCIrs88uw0+pGbomcTKgI+/uuElVogCXwz59NE5z++Ea KBkQ== X-Gm-Message-State: AOJu0YwrtGIrm17ZrRjtgXOZD5X2ipskbcAjQBXU+o9W354u4O/TQjQO 7myvy3EGfa4+8VeYmzxNYZHX6cMTu6Ge86kg/yo= X-Google-Smtp-Source: AGHT+IHQPwmTkcTJYPPpTlDB57qZSmZcjjDbP6AKy3832w8ouHNcl4EJvOBEn1VMp8zL65UjSwccOA== X-Received: by 2002:a05:6e02:1986:b0:35d:6121:3794 with SMTP id g6-20020a056e02198600b0035d61213794mr12763849ilf.54.1702441167678; Tue, 12 Dec 2023 20:19:27 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b001d077da4ac4sm9340888plf.212.2023.12.12.20.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:27 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 07/25] net/dpaa2: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 20:16:34 -0800 Message-ID: <20231213041920.729403-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213041920.729403-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213041920.729403-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/dpaa2/dpaa2_ethdev.c | 2 +- drivers/net/dpaa2/dpaa2_pmd_logs.h | 2 +- drivers/net/dpaa2/dpaa2_sparser.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 8e610b6bba30..71d57ab26062 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -2851,7 +2851,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev) return ret; } } - RTE_LOG(INFO, PMD, "%s: netdev created, connected to %s\n", + DPAA2_PMD_INFO("%s: netdev created, connected to %s\n", eth_dev->data->name, dpaa2_dev->ep_name); return 0; diff --git a/drivers/net/dpaa2/dpaa2_pmd_logs.h b/drivers/net/dpaa2/dpaa2_pmd_logs.h index c47ba8e10bfc..89bffc684e50 100644 --- a/drivers/net/dpaa2/dpaa2_pmd_logs.h +++ b/drivers/net/dpaa2/dpaa2_pmd_logs.h @@ -28,7 +28,7 @@ extern int dpaa2_logtype_pmd; /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAA2_PMD_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ## level, dpaa2_logtype_pmd, fmt, ## args) #define DPAA2_PMD_DP_DEBUG(fmt, args...) \ DPAA2_PMD_DP_LOG(DEBUG, fmt, ## args) diff --git a/drivers/net/dpaa2/dpaa2_sparser.c b/drivers/net/dpaa2/dpaa2_sparser.c index 63463c4fbfd6..202996c5d05d 100644 --- a/drivers/net/dpaa2/dpaa2_sparser.c +++ b/drivers/net/dpaa2/dpaa2_sparser.c @@ -181,7 +181,7 @@ int dpaa2_eth_load_wriop_soft_parser(struct dpaa2_dev_priv *priv, priv->ss_iova = (uint64_t)(DPAA2_VADDR_TO_IOVA(addr)); priv->ss_offset += sp_param.size; - RTE_LOG(INFO, PMD, "Soft parser loaded for dpni@%d\n", priv->hw_id); + DPAA2_PMD_INFO("Soft parser loaded for dpni@%d\n", priv->hw_id); rte_free(addr); return 0; @@ -234,6 +234,6 @@ int dpaa2_eth_enable_wriop_soft_parser(struct dpaa2_dev_priv *priv, } rte_free(param_addr); - RTE_LOG(INFO, PMD, "Soft parser enabled for dpni@%d\n", priv->hw_id); + DPAA2_PMD_INFO("Soft parser enabled for dpni@%d\n", priv->hw_id); return 0; } -- 2.42.0