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 F37A843760; Fri, 22 Dec 2023 18:19:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0744F40E40; Fri, 22 Dec 2023 18:18:40 +0100 (CET) Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by mails.dpdk.org (Postfix) with ESMTP id A3B3540A4B for ; Fri, 22 Dec 2023 18:18:36 +0100 (CET) Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-7ba8f139522so65373339f.1 for ; Fri, 22 Dec 2023 09:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1703265516; x=1703870316; 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=QU3nFNwjIK06NvWpFRPCLwHt/9+JBWg/geLP8OMZ5EBckXfmhyX0tR104QJKbtuZCd edsyq/RnHVrHFRTbRBLAXc/9SI88GjyJQSEXfpfwSLP8i1mpL/BeotH7eJlsSGFMhQD2 t0YRWHyASc6C9jEzCQBFOQ4TAUVZyjcn9n1Ah8b+ida4hpCfS8GCWNaUn4FE6NYHjUY0 n2cbdnqMrwc0xp7WD+wJr6TZ9B2usAENuUcjo5JGPIyhW6LSWFajFPgS1P/DSG82y371 OS/ncRy6D3072fJRUbYPVpfnfdLO1d45GK2xx7E+OTBLNhArGuUngOiUAVmJayPl1qxg TuCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703265516; x=1703870316; 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=U6Z2tJ2cw/MnaSTebWDvK/eoJpyTZBwkvQi8zKIXK1N1cIT0ZDJOMgBGz0gRTU9E2T 0YDLdVurHlfThD8+lsYUMk/rK6n8RLL4BG4xm2o9oCpp03Gi9QJSj2Hc/xVa/1w6I3vS AMtZ4T3DnUDhn4FHVCiVSWcAfOCs0u7+nUQSNuCHPOm/pWrjWRkxgJe4kw2kgEDufnPN 64beqw1DMfmRs0gg1/x5T3Go0cDQChx9a5z8Zz9yFhXODpo9Of0k20Lh+w474CVeXTtW t3bEwVdCVSI+/2fD9SLQhu+kAHDrFHDxYu6Qt1xZzIzTX2aCCPT4H2TN6Gvx/L5/FezD FO9Q== X-Gm-Message-State: AOJu0YzCFxL+4B1kW4lzcGaAKWjii7MHLXf1BQJabKqEBRJhdfO9ypqB 8GfALpgKXLBsad5ESIwVbVRfeD/HDPaqqs7TSiKVq4svdUbhzQ== X-Google-Smtp-Source: AGHT+IGozmI9QzB/NRiVFAfx6fTdC0GlINq7IuBGypgcOUZJmqi9j1McYtpIz5P3QVLkSdExz5bXug== X-Received: by 2002:a05:6602:3145:b0:7ba:a4c2:faf with SMTP id m5-20020a056602314500b007baa4c20fafmr951704ioy.20.1703265515780; Fri, 22 Dec 2023 09:18:35 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id h19-20020a62b413000000b006d7d454e58asm372024pfn.117.2023.12.22.09.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:18:35 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena , Nipun Gupta , Aman Singh , Ferruh Yigit Subject: [PATCH v6 04/20] net/dpaa: use dedicated logtype not PMD Date: Fri, 22 Dec 2023 09:11:37 -0800 Message-ID: <20231222171820.8778-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222171820.8778-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20231222171820.8778-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