From de86647dbe1bfcd1f80c9e6052822f93392997dc Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 5 Nov 2015 22:51:10 +0800 Subject: [PATCH] regress: fix compiled warning for 00opcode_uc_crash.c --- tests/regress/00opcode_uc_crash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regress/00opcode_uc_crash.c b/tests/regress/00opcode_uc_crash.c index b5a43a9b..f18e1c77 100644 --- a/tests/regress/00opcode_uc_crash.c +++ b/tests/regress/00opcode_uc_crash.c @@ -35,7 +35,7 @@ static void VM_exec() err = uc_mem_write(uc, ADDRESS, X86_CODE32, sizeof(X86_CODE32) - 1); if(err != UC_ERR_OK) { - printf("Failed to write emulation code to memory, quit!: %s(len %d)", uc_strerror(err), sizeof(X86_CODE32) - 1); + printf("Failed to write emulation code to memory, quit!: %s(len %lu)", uc_strerror(err), sizeof(X86_CODE32) - 1); return; } @@ -66,4 +66,4 @@ int main(int argc, char *argv[]) { VM_exec(); return 0; -} \ No newline at end of file +}