From 4ab133489c13382e13aea8d34aa0ec404c409f07 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Fri, 21 Apr 2023 09:13:36 +0000 Subject: testatomic: Fix apr_uint64_t format to APR_UINT64_T_FMT. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1909310 13f79535-47bb-0310-9956-ffa450edef68 --- test/testatomic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testatomic.c b/test/testatomic.c index 286ca066c..40c103349 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -328,7 +328,7 @@ static void test_wrap_zero64(abts_case *tc, void *data) rv = apr_atomic_dec64(&y64); ABTS_ASSERT(tc, "apr_atomic_dec64 on zero returned zero.", rv != 0); - str = apr_psprintf(p, "zero wrap failed: 0 - 1 = %lu", y64); + str = apr_psprintf(p, "zero wrap failed: 0 - 1 = %" APR_UINT64_T_FMT, y64); ABTS_ASSERT(tc, str, y64 == minus1); } @@ -342,7 +342,7 @@ static void test_inc_neg164(abts_case *tc, void *data) rv = apr_atomic_inc64(&y64); ABTS_ASSERT(tc, "apr_atomic_inc64 didn't return the old value.", rv == minus1); - str = apr_psprintf(p, "zero wrap failed: -1 + 1 = %lu", y64); + str = apr_psprintf(p, "zero wrap failed: -1 + 1 = %" APR_UINT64_T_FMT, y64); ABTS_ASSERT(tc, str, y64 == 0); } -- cgit v1.2.1