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 8701843751; Thu, 21 Dec 2023 17:49:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 527DB42E5F; Thu, 21 Dec 2023 17:48:59 +0100 (CET) Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) by mails.dpdk.org (Postfix) with ESMTP id 590F3406A2 for ; Thu, 21 Dec 2023 17:48:55 +0100 (CET) Received: by mail-oo1-f46.google.com with SMTP id 006d021491bc7-594019698b8so686957eaf.3 for ; Thu, 21 Dec 2023 08:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703177334; x=1703782134; 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=Nv8FTd4nIOkDpIrFZS5XqniknFq2wcwUf8nwWdOzVQw=; b=q32i3k5XyPb+ZnhLTJwAdGFZQ2/c0TGmkAbFSivJ08k1UlmKwYyTEoOJJrbgyqr0hL qcdXlhIoLpjb9MPXhjH6049dssSTFLeIvFZdn8Jox18lcYmMdY9/CUSPZbaZydm1/8I9 vY82430y7syOewko8PLttW9axLqh8GbXMUvuVOO2KYlFOOm3q2sCKuWAVQgDSI7NIS/l 9K9E+a95seMiEwqWy9NQByWHj4UX2ULit8FWrembPktP3wJPdTQbdLGBfk2wbPgCZ1fe +5pLyS5P9QFU6CJhfX7S2kZ0mKHslM+f8EatLZoFm7L4vmIFNKUdf5wc49Co2S5Hh58R vmcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703177334; x=1703782134; 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=Nv8FTd4nIOkDpIrFZS5XqniknFq2wcwUf8nwWdOzVQw=; b=W5+Knt/TqJq5nkTbJABZuDzJtdZZVP5b516DD8i8haF4cVy8vyJSqyjNsTL/ofsowS yd2e/+MvSa702cWtW/8MIIzR+OCfpdSyRgejMrhMoav9WWc1FfyoPh2RjLBkt//q3Qoc 8+kiCUIR7C4kM2Kfu4GFQtIkO6qG1bKpCEl+A1aGPYQJFAD/i2cQUKqH5CTiwEDMpV40 J5XkJ5KsoGYPeeIPYmFkMGDb+VmKaqvqZ3s/vyWpru7uKU7FU6DnoCRM4y8RhBziYiiL YhecilK0/Zg/IXG2th6XqU78GQTsPCEdobx83Gh4V5YhI8Kf79hxs3TraVGUasxs1V85 C2gA== X-Gm-Message-State: AOJu0Yy7kYH7bUe0AXWM5eulcDjZAg5yZBd1Z6OAldf+dBQcmspiheO6 n7aCHoDnjrUwABKIkmgP1NrkmvDLjNh4fhRVipFvtVabVzdinQ== X-Google-Smtp-Source: AGHT+IHPbdqCgR2j3pwSjbDf7VkpVnrNvJMuOlYw+zbVZBUKDlZObrN15JjthyeEFtpii8y5r8wqvw== X-Received: by 2002:a05:6358:6f1a:b0:172:e226:c173 with SMTP id r26-20020a0563586f1a00b00172e226c173mr45790rwn.3.1703177334586; Thu, 21 Dec 2023 08:48:54 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id g20-20020a63e614000000b0058901200bbbsm1842456pgh.40.2023.12.21.08.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 08:48:54 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena , Nipun Gupta , Shreyansh Jain Subject: [PATCH v5 03/18] mempool/dpaa2: use driver logtype not PMD Date: Thu, 21 Dec 2023 08:46:20 -0800 Message-ID: <20231221164841.125006-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221164841.125006-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231221164841.125006-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 macros for logging, use them. Fixes: 7ed359909556 ("mempool/dpaa2: add functions for CMDIF") Signed-off-by: Stephen Hemminger --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index 84371d5d1abb..4c9245cb814c 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_ERR("DPAA2 buffer pool not configured"); 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_ERR("DPAA2 buffer pool not configured"); return NULL; } -- 2.43.0