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 67E9F4373D; Mon, 18 Dec 2023 20:26:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F0BD42DAC; Mon, 18 Dec 2023 20:26:45 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id BC4BA402D8 for ; Mon, 18 Dec 2023 20:26:43 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d3ac28ae81so14754775ad.0 for ; Mon, 18 Dec 2023 11:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702927603; x=1703532403; 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=uTtXs3ZSLeCpGLgpmiXmdzt4QcJ7XQ4sprdQCUPydrN4O/iiIY7611YC/yduzFVyFI KTDzW0XIvyZE2Szp/Zwn9MdxReJvyc+4wgMEINUu8KQS4ME59Rf/YN5K/dA2rwGoq198 sj2rtprrF26mIAIZdf+Y8SI/i/AsZ1hDPzN9wsjZW5XO3eu/0YfnX1WGhkVoAW6pqMs9 CN/4JGDRrJ6/VoIpS4AZVweAIHwLFM6bKRjbXeDdBRgEhfLDlLsGgbsDtv8fPfidGTNB uIMO/GvBWW/t+Pm0SPzOCFlgOVgNkfs7tEK411yRXeVU9OYGMPiOW8xkXmIq8vmECJGy fPlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702927603; x=1703532403; 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=UPtauB/KNIGIG0qQSePgZT5u0KWzYx7xMgThHLDZ7tmxPMv5qUcOvB7KhDJzrtdMVd ANzzIz69UM8fH9N6Ws+mVKYlGNsgXx06E46DvoDSuXVFXJny3kU0UFe4KBCjUqt+Bwz4 6k4vD9kwEyksdO2b1NqjsIvLS+QKXBXZG5up1aHkERnAzHuSRsIpHb3BvdQk0wvUdDFk 5j0LPj/Akhr+ddAzEnG/uGc8uzWVhDnTcZeIz44mG3iCcgEHdBdVU734cnnXUY4snoYs EBIaWuz2Ui07PrOvBe/0UrDZUSFsnEPhr0lVpN4Qy+ymIkxsy/GmvoCfRdcjIrh7/bnw Apeg== X-Gm-Message-State: AOJu0YxaB3h3O07th2iHfDq/whwARfW/+LzB/6rkQnSHhGiygEfUcQUt FgIC+3xxvSQgJWfobb2kKpwc73mEbcqNVdC2MeGfrw== X-Google-Smtp-Source: AGHT+IEf9REdlHhA6t9xWHG85gV0z145XXddQ1AGO09WI+iNTxJQV1LIC30MpJyx/i5t/mkvoHHg4A== X-Received: by 2002:a17:902:dacf:b0:1d3:d72e:ce33 with SMTP id q15-20020a170902dacf00b001d3d72ece33mr689775plx.107.1702927603004; Mon, 18 Dec 2023 11:26:43 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p17-20020a170903249100b001cfbe348ca5sm19410284plw.187.2023.12.18.11.26.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 11:26:42 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 02/17] mempool/dpaa2: use driver logtype not PMD Date: Mon, 18 Dec 2023 11:22:18 -0800 Message-ID: <20231218192631.699267-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231218192631.699267-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231218192631.699267-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