From f2998f14cde404062fd3a563092cf3eca66de442 Mon Sep 17 00:00:00 2001 From: Stephen Date: Wed, 5 Oct 2016 09:20:36 -0700 Subject: [PATCH] Update test_hang.c --- tests/unit/test_hang.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_hang.c b/tests/unit/test_hang.c index 4ac18ec3..931f5ed0 100644 --- a/tests/unit/test_hang.c +++ b/tests/unit/test_hang.c @@ -5,6 +5,7 @@ #include "unicorn_test.h" #include +#include uint64_t trunc_page(uint64_t addr) { @@ -87,8 +88,8 @@ void test_hang(void **state) uc_reg_read(uc, UC_ARM64_REG_X0, &x0); uc_reg_read(uc, UC_ARM64_REG_X1, &x1); - printf("x0: %#lx\n", x0); - printf("x1: %#lx\n", x1); + printf("x0: %"PRIu64"\n", x0); + printf("x1: %"PRIu64"\n", x1); } int main(int argc, const char * argv[]) {