summaryrefslogtreecommitdiff
path: root/common/tests
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2016-07-27 11:05:13 -0700
committerShawn Routhier <sar@isc.org>2016-07-27 11:05:13 -0700
commitdd3373f457d73a345afbe7778c47da71dbaf0248 (patch)
tree4890a2f997e8df258f8894a8a68a6438630194f3 /common/tests
parent10b7683e586b8462c17bc766be8cb8322c227abc (diff)
downloadisc-dhcp-dd3373f457d73a345afbe7778c47da71dbaf0248.tar.gz
[master] Fix test allocation message to use %zu
Diffstat (limited to 'common/tests')
-rw-r--r--common/tests/test_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/tests/test_alloc.c b/common/tests/test_alloc.c
index 07d6e6c0..afb1cd8f 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);
}
}