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 A310443751; Thu, 21 Dec 2023 17:49:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD61242E63; Thu, 21 Dec 2023 17:49:00 +0100 (CET) Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) by mails.dpdk.org (Postfix) with ESMTP id 45B7D40A7A for ; Thu, 21 Dec 2023 17:48:56 +0100 (CET) Received: by mail-il1-f178.google.com with SMTP id e9e14a558f8ab-35fb0dcec7aso3925555ab.3 for ; Thu, 21 Dec 2023 08:48:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703177335; x=1703782135; 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=uwbsWX2Ew2Xai4uqvaY0ZrANYDi5fODTCO5ci30KcQA=; b=VQFBimorRTeZWbAoRv8Zw8qm05saKDtooW3Ski3truH3KsebyppPoae8kfsITbzy+d W4qWS2i81lBIhTU71rnQWZPTQ+CUyGUeQPRNpMGznEYzwogFEmyIVPBxy1+gj7ph21Qs 7ZVuK8EVfRAwAauTv09p/QYHfs7xJqIgcmRK7HTfpdQRgJjNqU6ES+CRDBiTLbfuQ/Td GNzPEvya0WQo8e6hCRBpn5deNqBDzq90h1hsQATRV6CXos33ISkuodNPXWAFD46FrmS3 NpQOSm2mIutBdHF8++lRHf488HuTaYtqBoxm+rpgsazMZPqyC9dP70R1hoRxfNohlwfY xCVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703177335; x=1703782135; 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=uwbsWX2Ew2Xai4uqvaY0ZrANYDi5fODTCO5ci30KcQA=; b=VxE5/8YHCh7P6ugnIbmQ7kDJdOsOf+gAhaMqp2upsV4NSQewXFEdjQWlSzvnIstuLU e0RAbId4fvehFArP+DDd4rq1wZRuw3Cu4ntn+U5tBQpDRZwBqe+cju7G7xOHL7yxedJE HEveh4WV+J2LKVnjt182/sHRQdYVYVLgyOHebb5//+0JFDP2Ha+wzgDSfSHoqsoxbYpa k++i4782jaX92UqYH9D6q8L57Vz/yMO/3jgGHe74sWfYerOn5bQvXxtrEdadEUFUGcFL N6rtEkN291p55cS5p3QIP1zPhAawHtg7QYw97Z+M8Bi4wHupOrn90gsjeyptkIYsN4KR NRCw== X-Gm-Message-State: AOJu0YzkdVX6c6sTFfe9SGtfLHhAfp8T05Inij4JES5H/sHN7ZkHkZy7 TIpPrpZziXBAafNsKAT1o1sUopnSIDERbuNCvx3+Rg== X-Google-Smtp-Source: AGHT+IG1R7K7PWLW4sXrJnI76bYawnQyUPkMeWwR0ysjbjYJqHP+Wm/+rvdHTUQ1BGH0Rv8dt7/d4g== X-Received: by 2002:a05:6e02:b44:b0:35f:a1b6:94e6 with SMTP id f4-20020a056e020b4400b0035fa1b694e6mr14270309ilu.10.1703177335599; Thu, 21 Dec 2023 08:48:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 08:48:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena , Nipun Gupta , Ferruh Yigit , Aman Singh Subject: [PATCH v5 04/18] net/dpaa: use dedicated logtype not PMD Date: Thu, 21 Dec 2023 08:46:21 -0800 Message-ID: <20231221164841.125006-5-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 a logtype, but was not used in couple places. Fixes: 6b10d1f7bdea ("net/dpaa: update process specific device info") Fixes: c2c4f87b1259 ("net: add macro for MAC address print") Signed-off-by: Stephen Hemminger --- drivers/net/dpaa/dpaa_ethdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index ef4c06db6a4d..2b497694cb02 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -2096,8 +2096,8 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev) /* copy the primary mac address */ rte_ether_addr_copy(&fman_intf->mac_addr, ð_dev->data->mac_addrs[0]); - RTE_LOG(INFO, PMD, "net: dpaa: %s: " RTE_ETHER_ADDR_PRT_FMT "\n", - dpaa_device->name, RTE_ETHER_ADDR_BYTES(&fman_intf->mac_addr)); + DPAA_PMD_INFO("net: dpaa: %s: " RTE_ETHER_ADDR_PRT_FMT, + dpaa_device->name, RTE_ETHER_ADDR_BYTES(&fman_intf->mac_addr)); if (!fman_intf->is_shared_mac) { /* Configure error packet handling */ @@ -2166,7 +2166,7 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv, ret = dpaa_dev_init_secondary(eth_dev); if (ret != 0) { - RTE_LOG(ERR, PMD, "secondary dev init failed\n"); + DPAA_PMD_ERR("secondary dev init failed"); return ret; } @@ -2182,7 +2182,7 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv, if (!(default_q || fmc_q)) { if (dpaa_fm_init()) { - DPAA_PMD_ERR("FM init failed\n"); + DPAA_PMD_ERR("FM init failed"); return -1; } } -- 2.43.0