The debug log referenced ui->num_uncore_freqs, which is the field name
used by the intel_uncore driver.  The AMD uncore_power_info struct
calls it nb_freqs, so building with RTE_LIBRTE_POWER_DEBUG failed.

Fixes: da4d64d0e803 ("power/amd_uncore: add uncore for AMD EPYC processors")
Cc: [email protected]

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/power/amd_uncore/amd_uncore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/amd_uncore/amd_uncore.c 
b/drivers/power/amd_uncore/amd_uncore.c
index c3e95cdc08..b341cfef75 100644
--- a/drivers/power/amd_uncore/amd_uncore.c
+++ b/drivers/power/amd_uncore/amd_uncore.c
@@ -100,7 +100,7 @@ power_get_available_uncore_freqs(struct uncore_power_info 
*ui)
        }
 
        POWER_DEBUG_LOG("%d frequency(s) of pkg %02u die %02u are available",
-                       ui->num_uncore_freqs, ui->pkg, ui->die);
+                       ui->nb_freqs, ui->pkg, ui->die);
 
        return 0;
 }
-- 
2.53.0

Reply via email to