summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-04-21 09:13:36 +0000
committerYann Ylavic <ylavic@apache.org>2023-04-21 09:13:36 +0000
commit4ab133489c13382e13aea8d34aa0ec404c409f07 (patch)
tree5eb51fea95027f7be7fdae95395f031ca5c700a6
parent0a67578d96545785feb5a987cbe2dbd184127d79 (diff)
downloadapr-4ab133489c13382e13aea8d34aa0ec404c409f07.tar.gz
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
-rw-r--r--test/testatomic.c4
1 files 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);
}