From: Shawn Routhier Date: Wed, 27 Jul 2016 18:00:28 +0000 (-0700) Subject: [v4_1_esv] Fix test allocation message to use %zu X-Git-Tag: v4_1_esv_r14b1~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca2623835304b72274a9e8d32b7dd29de9fd7a04;p=thirdparty%2Fdhcp.git [v4_1_esv] Fix test allocation message to use %zu --- diff --git a/common/tests/test_alloc.c b/common/tests/test_alloc.c index 07d6e6c04..afb1cd8f6 100644 --- a/common/tests/test_alloc.c +++ b/common/tests/test_alloc.c @@ -551,7 +551,7 @@ void checkBuffer(size_t test_size, const char *file, int line) { max_size = ((size_t)-1) - DMDSIZE; if (test_size > max_size) { - atf_tc_skip("Test size greater than max size, %lx", test_size); + atf_tc_skip("Test size greater than max size, %zu", test_size); return; } @@ -562,10 +562,10 @@ void checkBuffer(size_t test_size, const char *file, int line) { if (buf != NULL) { buf[test_size - 1] = 1; if (buf[test_size - 1] != 1) - atf_tc_fail("Value mismatch for index %lu", test_size); + atf_tc_fail("Value mismatch for index %zu", test_size); dfree(buf, file, line); } else { - atf_tc_skip("Unable to allocate memory %lu", test_size); + atf_tc_skip("Unable to allocate memory %zu", test_size); } }