[rtems commit] psxclock/init.c: Change print format for warning

Joel Sherrill joel at rtems.org
Fri Aug 19 20:46:12 UTC 2022


Module:    rtems
Branch:    master
Commit:    f60f349d8629a2f0db0384c513cff1aad586ede0
Changeset: http://git.rtems.org/rtems/commit/?id=f60f349d8629a2f0db0384c513cff1aad586ede0

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Tue Aug 16 12:05:31 2022 -0500

psxclock/init.c: Change print format for warning

Updates #4662

---

 testsuites/psxtests/psxclock/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/psxtests/psxclock/init.c b/testsuites/psxtests/psxclock/init.c
index 743cfa6d78..eb2f1d130c 100644
--- a/testsuites/psxtests/psxclock/init.c
+++ b/testsuites/psxtests/psxclock/init.c
@@ -115,7 +115,7 @@ static void test_clock_check( clock_context* ctx, const rtems_interval ticks_per
     (((ctx->tspec.tv_sec * 1000000000LLU) + ctx->tspec.tv_nsec) / tick_period_nsec) + 1;
   rtems_test_assert( ctx->result == 0 );
   printf(
-    "clock: %s: sec=%llu nsec=%li ticks=%u expected-ticks=%u\n",
+    "clock: %s: sec=%" PRIdtime_t" nsec=%li ticks=%u expected-ticks=%u\n",
     ctx->name, ctx->tspec.tv_sec, ctx->tspec.tv_nsec, ctx->ticks, ticks);
   rtems_test_assert( ctx->ticks == ticks );
 }



More information about the vc mailing list