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 3B64B436D8; Wed, 13 Dec 2023 02:44:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E44F42E84; Wed, 13 Dec 2023 02:44:21 +0100 (CET) Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by mails.dpdk.org (Postfix) with ESMTP id C15D242E70 for ; Wed, 13 Dec 2023 02:44:16 +0100 (CET) Received: by mail-oi1-f175.google.com with SMTP id 5614622812f47-3b8958b32a2so5004453b6e.2 for ; Tue, 12 Dec 2023 17:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702431856; x=1703036656; 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=mLIuFJgxU/h22xc3bD+BN3rsasxN0djWRTHIA3iWW7k=; b=c2ovUb7qCdQsjxwsOkADGS3G4w4VCyZRQtDqWISTZn8YOwbo9w5Fs1V43NbN0TrH5+ vhaRPyTmQtCRF1zK/7DmdjptfefS5g96dt7F+mmdonC2uEdQE8BZGwpHoq5VvQEJgbkO y1DZ69bLom0uqTH8tIqi3JKvFunXy7/bZD991VevaQ8PuUpYnEi1zR8s4eCl31KUlldC E/JPPEJ6KUav6cGy90lv6LlzvdYdmArajZ7JfS5YnSAqaoU5tqFTvw7okt3AwC3/swxi d1Wu5PRZtkn6tfKGPsvVQgySGLGskaJ43UiuIpNre0jm7v17W5aeUJoOArhZ4rtxxuWG 0Ong== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702431856; x=1703036656; 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=mLIuFJgxU/h22xc3bD+BN3rsasxN0djWRTHIA3iWW7k=; b=tSv8rITRXLgoB0ybnLd0/zeN/ouBefv8gvJ1tBuqGjSJNgMEyxsjMZ2GG8ZJJ37EgR s9IUCj0QpKaS5nqdJPoW9m6qyH6OLA26RTl8nPwFnFRpiWEephNyRlEZFVFuPBX3ao0l S4IsMdFNna/KazdIG6Pb6qeh3S5ABkdyRuRZY1JCu5UlGw0CYKJBjqJ/uwCKsQPScGXq c+2rooxBG3ogSL1uy3OBDgiRbDI1uBRYjiheaZEAHeFBrQTZa1hLpE2PhjTMxyOTvuWi ngAeQeOjYxEiFTtMwzdoVqGEpevqtaQ487mdE0UU888hzPw+XOjOjluzRDehZc9gSbDh oHgg== X-Gm-Message-State: AOJu0YyNnJ1uGDAovysNhejYg+ls3zMhUHxTXLQV5llPYr4BqoGPb6hq IBPnonkjNF/3dJa3fIvuzKdN5/muYrlArIlC3en1HA== X-Google-Smtp-Source: AGHT+IFlfroqvRPs8HwDLfM9Cik6avCGjhsmRiDKy0HriQoTY74svj5bc4WpRaFa3yTwdFBs9ClJUg== X-Received: by 2002:a05:6808:1146:b0:3b9:e531:d732 with SMTP id u6-20020a056808114600b003b9e531d732mr10305161oiu.5.1702431856225; Tue, 12 Dec 2023 17:44:16 -0800 (PST) Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id f7-20020aa79d87000000b006ce5b4ade28sm8988375pfq.174.2023.12.12.17.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 17:44:15 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 06/26] net/dpaa: replace RTE_LOG_DP with rte_log_dp Date: Tue, 12 Dec 2023 17:42:22 -0800 Message-ID: <20231213014408.612051-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231213014408.612051-1-stephen@networkplumber.org> References: <20231213014408.612051-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 Want datapath logs to use own logtype. Signed-off-by: Stephen Hemminger --- drivers/net/dpaa/dpaa_ethdev.c | 4 ++-- drivers/net/dpaa/dpaa_ethdev.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index ef4c06db6a4d..0d0d493f3a6d 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -2096,7 +2096,7 @@ 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_PMD_INFO("dpaa: %s: " RTE_ETHER_ADDR_PRT_FMT, dpaa_device->name, RTE_ETHER_ADDR_BYTES(&fman_intf->mac_addr)); if (!fman_intf->is_shared_mac) { @@ -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; } diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h index 5b6802ece8f0..ced3e5f8ff98 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -232,6 +232,6 @@ extern int dpaa_logtype_pmd; /* DP Logs, toggled out at compile time if level lower than current level */ #define DPAA_DP_LOG(level, fmt, args...) \ - RTE_LOG_DP(level, PMD, fmt, ## args) + rte_log_dp(RTE_LOG_ ## level, dpaa_logtype_pmd, fmt, ## args) #endif -- 2.42.0