From cf9916c1cc21828ba846e5e23600a9f2ab51d5ee Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Thu, 7 Sep 2017 16:02:44 +0300 Subject: Fix compiler warnings about printf() arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gem_spin_batch.c:51:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] intel_opregion_decode.c:313:9: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=] Reviewed-by: Chris Wilson Signed-off-by: Ville Syrjälä --- tools/intel_opregion_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/intel_opregion_decode.c') diff --git a/tools/intel_opregion_decode.c b/tools/intel_opregion_decode.c index f532c1e2..380e43a8 100644 --- a/tools/intel_opregion_decode.c +++ b/tools/intel_opregion_decode.c @@ -310,7 +310,7 @@ static void decode_asle(const void *buffer) printf("\tfdsp:\t0x%08x\n", asle->fdsp); printf("\tstat:\t0x%08x\n", asle->stat); - printf("\trvda:\t0x%016lx\n", asle->rvda); + printf("\trvda:\t0x%016"PRIx64"\n", asle->rvda); printf("\trvds:\t0x%08x\n", asle->rvds); printf("\n"); -- cgit v1.2.3