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 54D40439B7; Wed, 24 Jan 2024 17:29:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8448242D3F; Wed, 24 Jan 2024 17:29:30 +0100 (CET) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id A35C940294 for ; Wed, 24 Jan 2024 17:29:28 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6dbb003be79so4876989b3a.0 for ; Wed, 24 Jan 2024 08:29:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1706113767; x=1706718567; 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=Yl7kHF5Y47CSOKnvegeIVAwbyVB8xvqdMY4mqyf+6Hw=; b=u2F6KC8fMcFr2SMcVgkNu+SQX2z9Kh7CuNYSwIBoO/v/uNwExj0U7Z5HNLnY70df5o gj65LBKDEtadcXcbPR3jbemDcZi7oRESdsK2tB7NeeXqx+fb+1XhZ94cZXrDAZ2AG1KJ 2JOtx1fz0b14kHlVBzU4+EesT+gb1NXkDcNxfJNKndxI+gKB4Rw2L2QgSBh60Ix1p3j/ gvsirtiExRoXHllVlISDqTz6a9PkMgKIeSoW4ucZO/ILFmSqxyqdgiCkukMoATkz3f8F cd30tlt/t+Q81VB5j6gMqN9i/ObLI9bsqLaA0DAbok91NIvJb+q8/u2JORxVyBTE4aip GV3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706113767; x=1706718567; 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=Yl7kHF5Y47CSOKnvegeIVAwbyVB8xvqdMY4mqyf+6Hw=; b=aM0IUqfbtJimMSje5QvfVkTu0P/ivE+Ztyl6KVBjROlEsJaK8fCnshnKjGZA/cHobP ABesebAlF+uYVRb/dPdtf/Ex64fbaV6US1ZZhgXIdXsdL+bJyR7sMTNqnEXTdqkpqAII 1KGgtlNAhpQpAaxIiG1UxamyoMaphckd+7udqQk1ngcXdcgG/CBRdwZSM6I7jnkwM0a7 BVLR+7OjWsUCB1CcMaC5ef+lB9MQfttRwPTR9lWYUcWnx7x+0S/NUWlnVtS+1Sh4XkNR 4WBPP+eal+A8jxkQFSG8AIqhhgveBCwkt1mHyHG7yoB/Ce1OOuF3YCcP8CrBTqipUOvL bATg== X-Gm-Message-State: AOJu0YztYdE1t2b5fA6Tbar6jlq2CpHJUaFeqWh8/HKkUXThpUXWHQmF SuVb+LnZPCE8FNAqRmqz8Lprd3iuUQa5W4ofWqGOMmMtdBCRbWrY9LoMcITCE9LZXCQ2gNU22+d g8Op7KQ== X-Google-Smtp-Source: AGHT+IFL6dIf+ZwPO5AcEVSt/RAc4cXhlxqeu//xrOjD5qF9FsdNkZYaszRaURbn5U3ArZ/6BuZYWA== X-Received: by 2002:a05:6a20:158c:b0:19c:66ac:7fb6 with SMTP id h12-20020a056a20158c00b0019c66ac7fb6mr1908786pzj.1.1706113767710; Wed, 24 Jan 2024 08:29:27 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id ka9-20020a056a00938900b006dd8643d468sm2436121pfb.193.2024.01.24.08.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 08:29:27 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nipun Gupta , Nikhil Agarwal , Hemant Agrawal , Sachin Saxena Subject: [PATCH 1/2] drivers: remove unnecessary RTE_LOG_DP macros Date: Wed, 24 Jan 2024 08:28:34 -0800 Message-ID: <20240124162917.59851-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240124162917.59851-1-stephen@networkplumber.org> References: <20240124162917.59851-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 Several drivers did copy/paste of log macros for datapath but are not using them, so remove them. Signed-off-by: Stephen Hemminger --- 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