You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2023/04/21 09:13:36 UTC

svn commit: r1909310 - /apr/apr/trunk/test/testatomic.c

Author: ylavic
Date: Fri Apr 21 09:13:36 2023
New Revision: 1909310

URL: http://svn.apache.org/viewvc?rev=1909310&view=rev
Log:
testatomic: Fix apr_uint64_t format to APR_UINT64_T_FMT.

Modified:
    apr/apr/trunk/test/testatomic.c

Modified: apr/apr/trunk/test/testatomic.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testatomic.c?rev=1909310&r1=1909309&r2=1909310&view=diff
==============================================================================
--- apr/apr/trunk/test/testatomic.c (original)
+++ apr/apr/trunk/test/testatomic.c Fri Apr 21 09:13:36 2023
@@ -328,7 +328,7 @@ static void test_wrap_zero64(abts_case *
     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 *t
     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);
 }