From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 9F125436D9;
	Wed, 13 Dec 2023 05:19:46 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id D7D9642EB5;
	Wed, 13 Dec 2023 05:19:27 +0100 (CET)
Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com
 [209.85.214.170])
 by mails.dpdk.org (Postfix) with ESMTP id 595B142E92
 for <dev@dpdk.org>; Wed, 13 Dec 2023 05:19:25 +0100 (CET)
Received: by mail-pl1-f170.google.com with SMTP id
 d9443c01a7336-1d08a924fcfso60389135ad.2
 for <dev@dpdk.org>; Tue, 12 Dec 2023 20:19:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441164;
 x=1703045964; 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=YawgjInfgY4YPNZsaxNs4gVBeFg8otxGkTP44ZubLEA=;
 b=MdGAtu1Q6WCBJFUIRr8Ga/G4vfXFDkb8Z/7626qBICf3zcvyE8o3WMhJq9eObHHXMH
 lY2Shj37IsNheQyazlCQzbvJWqSrhctbyxcaP22yWzXMBZrQRHpDDp8AoEwy/1XQI6Vj
 RxkNWT7vYVX0IQWX46jfAmWmlRQHuW8l7dnNtOzRs9UwqUMLU96UomcnC65Mmzc/QWEy
 IcWis5ikOAYsygVpEAZnBRzIehj02L8ZzYHNS5TWKPHwGmFSIQYxr1cYK2IyUFNJfgf6
 6J2cSVuD7jbmnHO37rUh1Qr9UqTpuwUJ7jhKtSxWqJmTUYpuA//ZFVC7Nu3MtfoEUw4/
 c1Pg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1702441164; x=1703045964;
 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=YawgjInfgY4YPNZsaxNs4gVBeFg8otxGkTP44ZubLEA=;
 b=MU7jVrCXkgXEetRGTCWK/KP36kg2geIBSjhy0iJKCiPNAZC1IjGgRQvhHgv+BkKTdn
 nbnRwVm7fgN4lEwJ2xRg+K86HBhtlxMSgJaS8ixwLheK6e2yDpez0JviecMn4w81LiWe
 R3D4j+WHZBiJT2mudAIRDImI3+RfvqEAcgWWxXicBZdPAwtlAocMSaV48l/GZlK9QJDO
 CNlwh3JCFUTZ7QB9WsxQQGdr/5JxeT68g2bRoGjLCEpFnRHt1hzdPXf6hLGENvI2M2TQ
 5W1zjrZ2653LtTQUboe2ZBwqeWCRCITfbqLCJB+3giZwWTqSwKuicxQC9EQhfv/0gzfP
 MagQ==
X-Gm-Message-State: AOJu0YxInscHbpnxDoWNIWPC2lHUjta+j8tTtUeHAA8oL8DIjf42IKJ7
 4qblsgCEfvcvYXTEP7VhT1oX0BaooCihxLXUBs4=
X-Google-Smtp-Source: AGHT+IEGWwPbRErSyCbBsPrxa1um0Lq0Lt1xZ8/bOIAbLTGawTGo4ZYDTmaz9Se9q1yZrN9AYPnrew==
X-Received: by 2002:a17:903:11c7:b0:1d0:b9f4:800f with SMTP id
 q7-20020a17090311c700b001d0b9f4800fmr7980293plh.109.1702441164494; 
 Tue, 12 Dec 2023 20:19:24 -0800 (PST)
Received: from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141])
 by smtp.gmail.com with ESMTPSA id
 p12-20020a170902e74c00b001d077da4ac4sm9340888plf.212.2023.12.12.20.19.23
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 12 Dec 2023 20:19:24 -0800 (PST)
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>,
 Igor Russkikh <irusskikh@marvell.com>
Subject: [PATCH v2 03/25] net/atlantic: replace RTE_LOG_DP with rte_log_dp
Date: Tue, 12 Dec 2023 20:16:30 -0800
Message-ID: <20231213041920.729403-4-stephen@networkplumber.org>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231213041920.729403-1-stephen@networkplumber.org>
References: <20231213014408.612051-1-stephen@networkplumber.org>
 <20231213041920.729403-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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Want datapath logs to use own logtype.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 drivers/net/atlantic/atl_logs.h | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/drivers/net/atlantic/atl_logs.h b/drivers/net/atlantic/atl_logs.h
index e3dba334fe92..c2a3a6320c58 100644
--- a/drivers/net/atlantic/atl_logs.h
+++ b/drivers/net/atlantic/atl_logs.h
@@ -14,18 +14,19 @@ extern int atl_logtype_init;
 
 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
 
-#define PMD_RX_LOG(level, fmt, args...) \
-	RTE_LOG_DP(level, PMD, "%s(): " fmt "\n", __func__, ## args)
-
-#define PMD_TX_LOG(level, fmt, args...) \
-	RTE_LOG_DP(level, PMD, "%s(): " fmt "\n", __func__, ## args)
-
 extern int atl_logtype_driver;
 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
 	rte_log(RTE_LOG_ ## level, atl_logtype_driver, "%s(): " fmt, \
 		__func__, ## args)
 
 #define PMD_DRV_LOG(level, fmt, args...) \
-	PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
+	rte_log_dp(RTE_LOG_ ## level, atl_logtype_driver, fmt "\n", \
+		   ## args)
+
+#define PMD_RX_LOG(level, fmt, args...) \
+	PMD_DRV_LOG(level, fmt, ## args)
+
+#define PMD_TX_LOG(level, fmt, args...) \
+	PMD_DRV_LOG(level, fmt, ## args)
 
 #endif
-- 
2.42.0