fix build warning for kernel testsuites
Signed-off-by: vela-mib <vela-mib@xiaomi.com>
This commit is contained in:
parent
e2805fc9c4
commit
84e186c9d1
@ -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 */
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user