From f4889a7491eb09397f1b7e2fdee659c660b44cfc Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 5 Feb 2015 07:50:24 +1100 Subject: [PATCH] cast to (unsigned long) to silence format warning (cherry picked from commit d2a50c9ba87a6c57cb310308dfe95fff2f2836e2) --- lib/isc/tests/mem_test.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/isc/tests/mem_test.c b/lib/isc/tests/mem_test.c index ecafa5be79..94e46d782c 100644 --- a/lib/isc/tests/mem_test.c +++ b/lib/isc/tests/mem_test.c @@ -75,7 +75,8 @@ ATF_TC_BODY(isc_mem_total, tc) { diff = after - before; printf("total_before=%lu, total_after=%lu, total_diff=%lu\n", - before, after, diff); + (unsigned long)before, (unsigned long)after, + (unsigned long)diff); /* 2048 +8 bytes extra for size_info */ ATF_CHECK_EQ(diff, (2048 + 8) * 100000); @@ -94,7 +95,8 @@ ATF_TC_BODY(isc_mem_total, tc) { diff = after - before; printf("total_before=%lu, total_after=%lu, total_diff=%lu\n", - before, after, diff); + (unsigned long)before, (unsigned long)after, + (unsigned long)diff); /* 2048 +8 bytes extra for size_info */ ATF_CHECK_EQ(diff, (2048 + 8) * 100000); @@ -135,7 +137,8 @@ ATF_TC_BODY(isc_mem_inuse, tc) { diff = after - before; printf("inuse_before=%lu, inuse_during=%lu, inuse_after=%lu\n", - before, during, after); + (unsigned long)before, (unsigned long)during, + (unsigned long)after); ATF_REQUIRE_EQ(diff, 0); out: