diff --git a/testing/testsuites/kernel/fs/cases/fs_fsync_test.c b/testing/testsuites/kernel/fs/cases/fs_fsync_test.c index d212d02da..e449ab808 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fsync_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fsync_test.c @@ -117,7 +117,7 @@ void test_nuttx_fs_fsync02(FAR void **state) bufsize = statfsbuf.f_bsize; - syslog(LOG_INFO, "the bsize = %ld\n", statfsbuf.f_bsize); + syslog(LOG_INFO, "the bsize = %" PRIdPTR "\n", statfsbuf.f_bsize); /* malloc memory */ diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer03.c b/testing/testsuites/kernel/time/cases/clock_test_timer03.c index 9839ed73b..c23093dd5 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer03.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer03.c @@ -123,7 +123,8 @@ void test_nuttx_clock_test_timer03(FAR void **state) /* 20000000, 2 ticks. */ failed += (escaped < expected || (escaped - expected) >= 20000000); - syslog(LOG_INFO, "expected = %ld escaped = %ld failed = %d", + syslog(LOG_INFO, + "expected = %" PRId64 " escaped = %" PRId64 " failed = %d", expected, escaped, failed); }