From 07581a7e4d090165dac67f02e0b16a5ed4086a4b Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Fri, 13 Jul 2018 05:51:03 +0100 Subject: [PATCH] test/power: fix 32-bit build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compilation issue: test/test/test_power_acpi_cpufreq.c:556:31: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t {aka long long unsigned int}’ printf("ACPI: Capabilities %lx\n", caps.capabilities); ~~^ ~~~~~~~~~~~~~~~~~ %llx Fixes: 39e38d583075 ("test/power: add unit test for get capabilities API") Signed-off-by: Pablo de Lara Acked-by: Radu Nicolau --- test/test/test_power_acpi_cpufreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test/test_power_acpi_cpufreq.c b/test/test/test_power_acpi_cpufreq.c index 6410969e06..22e541d65c 100644 --- a/test/test/test_power_acpi_cpufreq.c +++ b/test/test/test_power_acpi_cpufreq.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "test.h" @@ -553,7 +554,7 @@ test_power_acpi_caps(void) return -1; } - printf("ACPI: Capabilities %lx\n", caps.capabilities); + printf("ACPI: Capabilities %"PRIx64"\n", caps.capabilities); rte_power_unset_env(); return 0;