From 14a7628098ced773f200d0de97f305721289069f Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Tue, 23 Aug 2016 06:57:33 +0800 Subject: [PATCH] samples: fix print format specifies for uint64_t --- samples/sample_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/sample_x86.c b/samples/sample_x86.c index faf80a16..2e1d73ec 100644 --- a/samples/sample_x86.c +++ b/samples/sample_x86.c @@ -244,7 +244,7 @@ static void test_i386(void) uc_reg_read(uc, UC_X86_REG_XMM0, &r_xmm0); printf(">>> ECX = 0x%x\n", r_ecx); printf(">>> EDX = 0x%x\n", r_edx); - printf(">>> XMM0 = 0x%.16lx%.16lx\n", r_xmm0[1], r_xmm0[0]); + printf(">>> XMM0 = 0x%.16"PRIx64"%.16"PRIx64"\n", r_xmm0[1], r_xmm0[0]); // read from memory if (!uc_mem_read(uc, ADDRESS, &tmp, sizeof(tmp)))