summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2023-04-21 09:13:36 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2023-04-21 09:13:36 +0000
commit135debc4acdb7e6d09efc77eda2f3164b287f680 (patch)
tree5eb51fea95027f7be7fdae95395f031ca5c700a6
parente63857b5fa15798e87be4b800f3c000fb33ce50c (diff)
downloadlibapr-135debc4acdb7e6d09efc77eda2f3164b287f680.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);
}