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 9620F436D9; Wed, 13 Dec 2023 05:22:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0CD4242F65; Wed, 13 Dec 2023 05:19:53 +0100 (CET) Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by mails.dpdk.org (Postfix) with ESMTP id B421142EB6 for ; Wed, 13 Dec 2023 05:19:45 +0100 (CET) Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-db99bad7745so5944549276.0 for ; Tue, 12 Dec 2023 20:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441185; x=1703045985; 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=LeGbn7oE+F2fpatCIlY+gq5efT4Bo7/98/5GZKgfxpGdgSu0xfvLXesKLUUxQhpwYf YtZcD7NtbLTJllCu7b8VhopKq9195InI27cKrgTP9Fzvu5qSHQ2sxI/1zhFnenQQYdQi F+uf8ViW8J1yFVPbBJVPi+bWzNmhuvyHBiG/7e8dRcs4Ywvqm+1SYhxUusoDWNH7EH10 zEBOd0Jn8c6KBkqWaRk3uBz4B40NqsOOU529xm4wcgVqIdHbNBhxhzBylfPiAdR+HOKh IsZxt5BcqujaPKJjx4Hoiqs8wEXbXxw4ZlGDVp5vFVcGQAoZPYEuNkUHGtDl6NAVTcJQ 4TEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441185; x=1703045985; 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=k79B/jJr0d3LExPlp1lNE1Ot3D3/UmhId3bZj4Zj8pcnW+dV5AJOyTb1LWGk5MJP+U v0xRW76yePFqVZErYYauGkFJYQjPh4gcnRqF/jIlDdQs0iky15w2lDPjxv7b2mGUKjJV q2Nx72jqlWvxcQSdGZEqG8gop+ifAFL0QpFMegWcTd1G5cnZ/s/5xXDxvhgvIAe6T6gc tp77PG4v830ImJ/Rjm16hi/SAN/BK+LLigGTJ6blwnnwXy9gZRR5soPUWDH9NJDE7XKy 7w6B29KB8W5WEDn07ZdJqb/MhMMBp+nwWY3p63dxbVYlY4ono1OrcXH775c8SNLK5Y6D rfeQ== X-Gm-Message-State: AOJu0YztMqkF/xasDxTEmo4ey8LzabrM1lTts1xLUvp7LwjlSjTbnArT fALpRMNc4ReTn2EcIxSwV5jqVrobuvULcb8kIsc= X-Google-Smtp-Source: AGHT+IH12slbfWVpTj3wxpIG+FWgfGql5cddPcyWj9/SYKEUcajIH4VmuZKgzW9+fHCDeOyVV6uUhQ== X-Received: by 2002:a81:6d87:0:b0:5e2:ae7b:8024 with SMTP id i129-20020a816d87000000b005e2ae7b8024mr444395ywc.36.1702441185136; Tue, 12 Dec 2023 20:19:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:19:44 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 25/25] mempool/dpaa, mempool/dpaa2: do not use logtype PMD Date: Tue, 12 Dec 2023 20:16:52 -0800 Message-ID: <20231213041920.729403-26-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 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