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.wojciec...@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(-)

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)
-- 
2.17.1

Reply via email to