From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id F31C92BB1 for ; Fri, 13 Jul 2018 14:18:15 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jul 2018 05:18:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,347,1526367600"; d="scan'208";a="245431074" Received: from silpixa00399466.ir.intel.com (HELO silpixa00399466.ger.corp.intel.com) ([10.237.223.220]) by fmsmga006.fm.intel.com with ESMTP; 13 Jul 2018 05:18:13 -0700 From: Pablo de Lara To: radu.nicolau@intel.com, david.hunt@intel.com Cc: dev@dpdk.org, Pablo de Lara Date: Fri, 13 Jul 2018 05:12:40 +0100 Message-Id: <20180713041240.2722-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.14.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] test/power: fix 32-bit build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2018 12:18:16 -0000 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}’ -Werror=format=] 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 --- test/test/test_power_acpi_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_power_acpi_cpufreq.c b/test/test/test_power_acpi_cpufreq.c index 6410969e0..ff908e4e1 100644 --- a/test/test/test_power_acpi_cpufreq.c +++ b/test/test/test_power_acpi_cpufreq.c @@ -553,7 +553,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; -- 2.14.4