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 C3351436D8; Wed, 13 Dec 2023 02:48:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F8F542ED6; Wed, 13 Dec 2023 02:47:10 +0100 (CET) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 62D6E42EB9 for ; Wed, 13 Dec 2023 02:47:03 +0100 (CET) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-5ca29c131ebso1801228a12.0 for ; Tue, 12 Dec 2023 17:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702432022; x=1703036822; 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=v5vu/7C47Nme60wVXMnj+NQJ0rMhhOe2Pfxv+CymWX4=; b=qlFVlwE0q8nIY6Ep5DVjOyJBpXMsCTwW6GUyK3edZ26MgaoGt7pZqhpgrDSucwKsvN TVSBLkOAlPO700kSFcNgssoeHYpQAAM4n5V/8CaPBiGBNnkLkU35cJu/Vx+rvDbJQ2K6 ezuhgEZvRsDgPkBKeG25TMk19gRj7kC6Ucvl+rrXy+gVEVad6hrl/nhOPQkYX4Ydb4ND zwLMDhvzNMTlZr2CdEp0Szfl3N3r6DaTre7ylx6sYEfJdY0awLeqmkrGZhxahibCrcAI FDaQkdkleMmkxSxXesQ1MDNVIvEkHGN8h3lBL5prkKOLEiiZpKl580DRbLyalRfh1iYs oCzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702432022; x=1703036822; 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=v5vu/7C47Nme60wVXMnj+NQJ0rMhhOe2Pfxv+CymWX4=; b=e//ygNo4L0dgq58wnVbC4rZOzo+/rk7JIOTvzsfrXk8iJURq2mhFc657rI+QOqGhxF 2UXmqvwOOykyTk4ufrW8b+tBPbMaOHHHU+LCgeWFSP7JfTU/aIuUDOlRB0oz7LCHPXpP 6LNn1Vi1AWynj9VAUlnrAV2m7PyjLyZNAInAmCQQrJZciA/53YF2eySZRwTdGA1nz57e GV6Qyg9hLhEH0zBNITNY61ZWPB5auvXdIwzA09cR9KXPx8aOEQLP6VTlyU6/x2PjsauS /PNOElkQTdVKqS3a7mjkftKwmKbNoCj1PL6tCiY2qZnb7iPRpnIZbiF7pCvO4PDMmI5Y +EGw== X-Gm-Message-State: AOJu0YyrUaSmlUQsjimPvbOnfGzVm6QkPvq1W9czbMreg4DRNnL6VYMS h7NhixpLaw/D4eUibN/2im8DZci/3O5Gyy4XIMi5Hg== X-Google-Smtp-Source: AGHT+IHx5ETiaFh3fBWMkxlkbIUPHvp6k07iVJYSg3CgyMHmjQC2wLfLwzhyGrEudHxdXMLPPx7Tow== X-Received: by 2002:a05:6a21:3284:b0:18f:97c:8a14 with SMTP id yt4-20020a056a21328400b0018f097c8a14mr9920467pzb.63.1702432022647; Tue, 12 Dec 2023 17:47:02 -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.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:47:02 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 26/26] mempool/dpaa, mempool/dpaa2: do not use logtype PMD Date: Tue, 12 Dec 2023 17:42:42 -0800 Message-ID: <20231213014408.612051-27-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 The driver already has a logtype, just not consistently used. Signed-off-by: Stephen Hemminger --- drivers/mempool/dpaa/dpaa_mempool.h | 2 +- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 4 ++-- drivers/mempool/dpaa2/dpaa2_hw_mempool_logs.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mempool/dpaa/dpaa_mempool.h b/drivers/mempool/dpaa/dpaa_mempool.h index 3f0eafa7dd7b..ca97da46910c 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.h +++ b/drivers/mempool/dpaa/dpaa_mempool.h @@ -67,7 +67,7 @@ extern struct dpaa_bp_info *rte_dpaa_bpid_info; #define MEMPOOL_INIT_FUNC_TRACE() DPAA_MEMPOOL_LOG(DEBUG, " >>") #define DPAA_MEMPOOL_DPDEBUG(fmt, args...) \ - RTE_LOG_DP(DEBUG, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_DEBUG, dpaa_logtype_mempool, fmt, ## args) #define DPAA_MEMPOOL_DEBUG(fmt, args...) \ DPAA_MEMPOOL_LOG(DEBUG, fmt, ## args) #define DPAA_MEMPOOL_ERR(fmt, args...) \ diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index 84371d5d1abb..e3983d34c25c 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c @@ -293,7 +293,7 @@ rte_dpaa2_mbuf_pool_bpid(struct rte_mempool *mp) bp_info = mempool_to_bpinfo(mp); if (!(bp_info->bp_list)) { - RTE_LOG(ERR, PMD, "DPAA2 buffer pool not configured\n"); + DPAA2_MEMPOOL_LOG(ERR, "DPAA2 buffer pool not configured\n"); return -ENOMEM; } @@ -307,7 +307,7 @@ rte_dpaa2_mbuf_from_buf_addr(struct rte_mempool *mp, void *buf_addr) bp_info = mempool_to_bpinfo(mp); if (!(bp_info->bp_list)) { - RTE_LOG(ERR, PMD, "DPAA2 buffer pool not configured\n"); + DPAA2_MEMPOOL_LOG(ERR, "DPAA2 buffer pool not configured"); return NULL; } diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool_logs.h b/drivers/mempool/dpaa2/dpaa2_hw_mempool_logs.h index 986264319623..2f4fe0ba4209 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool_logs.h +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool_logs.h @@ -25,7 +25,7 @@ extern int dpaa2_logtype_mempool; /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAA2_MEMPOOL_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ## level, dpaa2_logtype_mempool, fmt, ## args) #define DPAA2_MEMPOOL_DP_DEBUG(fmt, args...) \ DPAA2_MEMPOOL_DP_LOG(DEBUG, fmt, ## args) -- 2.42.0