fix build warning for kernel testsuites

Signed-off-by: vela-mib <vela-mib@xiaomi.com>
This commit is contained in:
vela-mib 2024-03-27 17:35:03 +08:00 committed by Xiang Xiao
parent e2805fc9c4
commit 84e186c9d1
2 changed files with 3 additions and 2 deletions

View File

@ -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 */

View File

@ -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);
}