From 0af4baac31ea6babc1a07a9ec928df2082cca970 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 17 Mar 2016 17:49:22 +0800 Subject: [PATCH] unit: fix warnings in printing uint64_t in test_hookcounts.c --- tests/unit/test_hookcounts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_hookcounts.c b/tests/unit/test_hookcounts.c index 61ef263a..d5d807f9 100644 --- a/tests/unit/test_hookcounts.c +++ b/tests/unit/test_hookcounts.c @@ -96,9 +96,9 @@ test_hook_count(uc_engine *uc, OK(uc_mem_write(uc, address, code, code_length)); #ifdef DEBUG - printf("Address: %8.8lx\n", address); - printf("Start : %8.8lx\n", address + start_offset); - printf("End : %8.8lx\n", address + code_length - 1); + printf("Address: %"PRIx64"\n", address); + printf("Start : %"PRIx64"\n", address + start_offset); + printf("End : %"PRIx64"\n", address + code_length - 1); printf("Count : %d\n", expected_instructions); #endif OK(uc_emu_start(uc,