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 B462C4373D; Mon, 18 Dec 2023 20:27:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B94A142DBD; Mon, 18 Dec 2023 20:26:46 +0100 (CET) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id AC87E410D0 for ; Mon, 18 Dec 2023 20:26:44 +0100 (CET) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-5c701bd9a3cso1607703a12.0 for ; Mon, 18 Dec 2023 11:26:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702927604; x=1703532404; 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=JJa6kOa+ALP7oaTnTYf718m+YdiyoGoeMachZx7Pi7HSYCD2Y3kWFEDQlg4v4CF24g y53EF0zcSumiH2V9S93eg7NfJE1q8f6CLUIEjdqFuLLVivxu9GK7tigma97i44UwGx+I zyVU9+477GZt3eM0OCc7fnlEiRVBK725FWjJ+sTA1Ycl4ISBRt4iqF/a62Cw8sY+LOKg IBPRrgbGbUgphk3kszvEkG5kGRMCosi50CqCn1Kn+ma9l2EB+WERqSVsUSATwWRVs40g TUYoYPl94WefYxWiTTQR4XAedXWw9CJQaZkTYKThWMvhEKGYC4nbS+ujv/B3xAVPluLd 1LHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702927604; x=1703532404; 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=aXp9e1KBt8i6173FGOJvaNVdMOtLHPqb0PcgCMZLPRJjTCVgjbv5y6pmOqHD7SqPYm 95V61xsT1iJp8p79IxDGLzpULP0mqSb44VcZF99J26/gtr1HF+aRJAVqipF5wlVQe6PC OvTHPnogYtg6bR2sv5hUIGCvNX0Gm6BRX/lbfzLijacDpInWA2xWHI8CVCRHvihz2uQ2 +qAcESWT3TTyno9tv5W4WsV3Wr6hV2k3ndQCaQ6lpbTUVTTwAhJkAHZw36KDhGxKX4Dh qRehb2kxG5I82rF5N/agg2Ej62eb9iWuF1MXQQ8Y1F8wtSbRMA9Sb5GqSRt2Neohd80b tHPw== X-Gm-Message-State: AOJu0YznGTq0i6om2QMrWSrq/ZRLK32lcgJHBPelwYhdD71Jzid5k26f bdy1aGfbTbV6IwmQqCvmSwdFBEYsVgGHN9vdzuUcsg== X-Google-Smtp-Source: AGHT+IHGZkyHEkW5f8mNBWExSX7M/HpPfao92AA9iFOJT6lYWlld106o2fOeZjgEFD+ib2gjFbe9GQ== X-Received: by 2002:a05:6300:808c:b0:194:3d1:91b2 with SMTP id ap12-20020a056300808c00b0019403d191b2mr1692790pzc.91.1702927603978; 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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 11:26:43 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 03/17] net/dpaa: use dedicated logtype not PMD Date: Mon, 18 Dec 2023 11:22:19 -0800 Message-ID: <20231218192631.699267-4-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 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