[v1,12/17] power: replace library debug flag with global one

Message ID 20200417215739.23180-13-l.wojciechow@partner.samsung.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series introduce global debug flag |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Lukasz Wojciechowski April 17, 2020, 9:57 p.m. UTC
  Use global debug flag RTE_DEBUG instead of RTE_LIBRTE_POWER_DEBUG.
The old define is completely removed from source code and config.

Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
---
 config/common_base                      | 1 -
 lib/librte_power/power_acpi_cpufreq.c   | 2 +-
 lib/librte_power/power_pstate_cpufreq.c | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
  

Patch

diff --git a/config/common_base b/config/common_base
index b975a1feb..5863b4327 100644
--- a/config/common_base
+++ b/config/common_base
@@ -941,7 +941,6 @@  CONFIG_RTE_LIBRTE_ACL=y
 # Compile librte_power
 #
 CONFIG_RTE_LIBRTE_POWER=n
-CONFIG_RTE_LIBRTE_POWER_DEBUG=n
 CONFIG_RTE_MAX_LCORE_FREQS=64
 
 #
diff --git a/lib/librte_power/power_acpi_cpufreq.c b/lib/librte_power/power_acpi_cpufreq.c
index f443fce69..d5791699d 100644
--- a/lib/librte_power/power_acpi_cpufreq.c
+++ b/lib/librte_power/power_acpi_cpufreq.c
@@ -20,7 +20,7 @@ 
 #include "power_acpi_cpufreq.h"
 #include "power_common.h"
 
-#ifdef RTE_LIBRTE_POWER_DEBUG
+#ifdef RTE_DEBUG
 #define POWER_DEBUG_TRACE(fmt, args...) do { \
 		RTE_LOG(ERR, POWER, "%s: " fmt, __func__, ## args); \
 } while (0)
diff --git a/lib/librte_power/power_pstate_cpufreq.c b/lib/librte_power/power_pstate_cpufreq.c
index 2d8a9499d..0e522f768 100644
--- a/lib/librte_power/power_pstate_cpufreq.c
+++ b/lib/librte_power/power_pstate_cpufreq.c
@@ -23,7 +23,7 @@ 
 #include "power_common.h"
 
 
-#ifdef RTE_LIBRTE_POWER_DEBUG
+#ifdef RTE_DEBUG
 #define POWER_DEBUG_TRACE(fmt, args...) do { \
 		RTE_LOG(ERR, POWER, "%s: " fmt, __func__, ## args); \
 } while (0)