fix build warning for kernel testsuites

Signed-off-by: vela-mib <vela-mib@xiaomi.com>
This commit is contained in:
vela-mib 2024-03-22 10:36:55 +08:00 committed by Xiang Xiao
parent f4092962df
commit 74cf82f995
4 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ __attribute__((unused)) static void *thread_func(void *args)
eventfd_t eventfd01_buffer;
for (int i = 1; i < 6; i++)
{
read((int)args, &eventfd01_buffer, sizeof(eventfd_t));
read(*(int *)args, &eventfd01_buffer, sizeof(eventfd_t));
sleep(1);
}

View File

@ -117,7 +117,7 @@ void test_nuttx_fs_fsync02(FAR void **state)
bufsize = statfsbuf.f_bsize;
syslog(LOG_INFO, "the bsize = %d\n", statfsbuf.f_bsize);
syslog(LOG_INFO, "the bsize = %ld\n", statfsbuf.f_bsize);
/* malloc memory */

View File

@ -267,7 +267,7 @@ void test_nuttx_fs_stream03(FAR void **state)
if ((size_t)ret != len)
{
syslog(LOG_ERR,
"len = %zi != return value from fwrite = %zi",
"len = %zi != return value from fwrite = %i",
len, ret);
fclose(stream);
assert_true(1 == 0);
@ -300,7 +300,7 @@ void test_nuttx_fs_stream03(FAR void **state)
if ((size_t)ret != len)
{
syslog(LOG_ERR,
"len = %zi != return value from fread = %zi",
"len = %zi != return value from fread = %i",
len, ret);
free(inbuf);
fclose(stream);

View File

@ -123,7 +123,7 @@ void test_nuttx_clock_test_timer03(FAR void **state)
/* 20000000, 2 ticks. */
failed += (escaped < expected || (escaped - expected) >= 20000000);
syslog(LOG_INFO, "expected = %lld escaped = %lld failed = %d",
syslog(LOG_INFO, "expected = %ld escaped = %ld failed = %d",
expected, escaped, failed);
}