From 49d546b355a3691756e12482ec8910978f6ec68e Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sun, 28 Aug 2016 01:38:37 +0800 Subject: [PATCH] regress: fix some warnings on printing sizeof() --- tests/regress/00opcode_uc_crash.c | 2 +- tests/regress/eflags_nosync.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regress/00opcode_uc_crash.c b/tests/regress/00opcode_uc_crash.c index 84e63473..e735cfef 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 %lu)\n", uc_strerror(err), sizeof(X86_CODE32) - 1); + printf("Failed to write emulation code to memory, quit!: %s(len %zu)\n", uc_strerror(err), sizeof(X86_CODE32) - 1); return; } diff --git a/tests/regress/eflags_nosync.c b/tests/regress/eflags_nosync.c index f026ce01..3510b499 100644 --- a/tests/regress/eflags_nosync.c +++ b/tests/regress/eflags_nosync.c @@ -105,7 +105,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 %lu)", uc_strerror(err), sizeof(X86_CODE32) - 1); + printf("Failed to write emulation code to memory, quit!: %s(len %zu)", uc_strerror(err), sizeof(X86_CODE32) - 1); return; }