DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>,
	Nipun Gupta <nipun.gupta@amd.com>,
	Nikhil Agarwal <nikhil.agarwal@amd.com>,
	Hemant Agrawal <hemant.agrawal@nxp.com>,
	Sachin Saxena <sachin.saxena@nxp.com>
Subject: [PATCH 1/2] drivers: remove unnecessary RTE_LOG_DP macros
Date: Wed, 24 Jan 2024 08:28:34 -0800	[thread overview]
Message-ID: <20240124162917.59851-2-stephen@networkplumber.org> (raw)
In-Reply-To: <20240124162917.59851-1-stephen@networkplumber.org>

Several drivers did copy/paste of log macros for datapath
but are not using them, so remove them.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 drivers/bus/cdx/cdx_logs.h                | 11 -----------
 drivers/bus/fslmc/fslmc_logs.h            | 11 -----------
 drivers/common/dpaax/dpaax_logs.h         | 11 -----------
 drivers/event/dpaa2/dpaa2_eventdev_logs.h | 11 -----------
 4 files changed, 44 deletions(-)

diff --git a/drivers/bus/cdx/cdx_logs.h b/drivers/bus/cdx/cdx_logs.h
index a1046ce544a6..0ec39e9dd489 100644
--- a/drivers/bus/cdx/cdx_logs.h
+++ b/drivers/bus/cdx/cdx_logs.h
@@ -23,15 +23,4 @@ extern int cdx_logtype_bus;
 #define CDX_BUS_WARN(fmt, args...) \
 	CDX_BUS_LOG(WARNING, fmt, ## args)
 
-/* DP Logs, toggled out at compile time if level lower than current level */
-#define CDX_BUS_DP_LOG(level, fmt, args...) \
-	RTE_LOG_DP(level, PMD, fmt, ## args)
-
-#define CDX_BUS_DP_DEBUG(fmt, args...) \
-	CDX_BUS_DP_LOG(DEBUG, fmt, ## args)
-#define CDX_BUS_DP_INFO(fmt, args...) \
-	CDX_BUS_DP_LOG(INFO, fmt, ## args)
-#define CDX_BUS_DP_WARN(fmt, args...) \
-	CDX_BUS_DP_LOG(WARNING, fmt, ## args)
-
 #endif /* CDX_LOGS_H */
diff --git a/drivers/bus/fslmc/fslmc_logs.h b/drivers/bus/fslmc/fslmc_logs.h
index a1e14dd84e9a..e15c603426b2 100644
--- a/drivers/bus/fslmc/fslmc_logs.h
+++ b/drivers/bus/fslmc/fslmc_logs.h
@@ -25,15 +25,4 @@ extern int dpaa2_logtype_bus;
 #define DPAA2_BUS_WARN(fmt, args...) \
 	DPAA2_BUS_LOG(WARNING, fmt, ## args)
 
-/* DP Logs, toggled out at compile time if level lower than current level */
-#define DPAA2_BUS_DP_LOG(level, fmt, args...) \
-	RTE_LOG_DP(level, PMD, fmt, ## args)
-
-#define DPAA2_BUS_DP_DEBUG(fmt, args...) \
-	DPAA2_BUS_DP_LOG(DEBUG, fmt, ## args)
-#define DPAA2_BUS_DP_INFO(fmt, args...) \
-	DPAA2_BUS_DP_LOG(INFO, fmt, ## args)
-#define DPAA2_BUS_DP_WARN(fmt, args...) \
-	DPAA2_BUS_DP_LOG(WARNING, fmt, ## args)
-
 #endif /* _FSLMC_LOGS_H_ */
diff --git a/drivers/common/dpaax/dpaax_logs.h b/drivers/common/dpaax/dpaax_logs.h
index 180476f6757c..f667aaff72fd 100644
--- a/drivers/common/dpaax/dpaax_logs.h
+++ b/drivers/common/dpaax/dpaax_logs.h
@@ -35,15 +35,4 @@ extern int dpaax_logger;
 #define DPAAX_WARN(fmt, args...) \
 	DPAAX_LOG(WARNING, fmt, ## args)
 
-/* DP Logs, toggled out at compile time if level lower than current level */
-#define DPAAX_DP_LOG(level, fmt, args...) \
-	RTE_LOG_DP(level, PMD, fmt, ## args)
-
-#define DPAAX_DP_DEBUG(fmt, args...) \
-	DPAAX_DP_LOG(DEBUG, fmt, ## args)
-#define DPAAX_DP_INFO(fmt, args...) \
-	DPAAX_DP_LOG(INFO, fmt, ## args)
-#define DPAAX_DP_WARN(fmt, args...) \
-	DPAAX_DP_LOG(WARNING, fmt, ## args)
-
 #endif /* _DPAAX_LOGS_H_ */
diff --git a/drivers/event/dpaa2/dpaa2_eventdev_logs.h b/drivers/event/dpaa2/dpaa2_eventdev_logs.h
index 66c8c772740d..b894fb32996a 100644
--- a/drivers/event/dpaa2/dpaa2_eventdev_logs.h
+++ b/drivers/event/dpaa2/dpaa2_eventdev_logs.h
@@ -24,17 +24,6 @@ extern int dpaa2_logtype_event;
 #define DPAA2_EVENTDEV_WARN(fmt, args...) \
 	DPAA2_EVENTDEV_LOG(WARNING, fmt, ## args)
 
-/* DP Logs, toggled out at compile time if level lower than current level */
-#define DPAA2_EVENTDEV_DP_LOG(level, fmt, args...) \
-	RTE_LOG_DP(level, PMD, fmt, ## args)
-
-#define DPAA2_EVENTDEV_DP_DEBUG(fmt, args...) \
-	DPAA2_EVENTDEV_DP_LOG(DEBUG, fmt, ## args)
-#define DPAA2_EVENTDEV_DP_INFO(fmt, args...) \
-	DPAA2_EVENTDEV_DP_LOG(INFO, fmt, ## args)
-#define DPAA2_EVENTDEV_DP_WARN(fmt, args...) \
-	DPAA2_EVENTDEV_DP_LOG(WARNING, fmt, ## args)
-
 #define dpaa2_evdev_info(fmt, ...) DPAA2_EVENTDEV_LOG(INFO, fmt, ##__VA_ARGS__)
 #define dpaa2_evdev_dbg(fmt, ...) DPAA2_EVENTDEV_LOG(DEBUG, fmt, ##__VA_ARGS__)
 #define dpaa2_evdev_err(fmt, ...) DPAA2_EVENTDEV_LOG(ERR, fmt, ##__VA_ARGS__)
-- 
2.43.0


  reply	other threads:[~2024-01-24 16:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24 16:28 [PATCH 0/2] RTE_LOG_DP cleanups Stephen Hemminger
2024-01-24 16:28 ` Stephen Hemminger [this message]
2024-01-24 18:07   ` [PATCH 1/2] drivers: remove unnecessary RTE_LOG_DP macros Tyler Retzlaff
2024-02-01  9:33   ` David Marchand
2024-01-24 16:28 ` [PATCH 2/2] drivers: RTE_LOG_DP newline consistency Stephen Hemminger
2024-01-24 18:11   ` Tyler Retzlaff
2024-02-01  8:51   ` David Marchand
2024-02-02 17:40   ` [PATCH] drivers: Convert uses of RTE_LOG_DP to use RTE_LOG_DP_LINE Stephen Hemminger
2024-02-05 18:43     ` Patrick Robb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240124162917.59851-2-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=hemant.agrawal@nxp.com \
    --cc=nikhil.agarwal@amd.com \
    --cc=nipun.gupta@amd.com \
    --cc=sachin.saxena@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).