nuttx-apps/testing/ostest
Xiang Xiao 3ba18e5407 testing/ostest: Fix the compiler warning
aio.c: In function ‘check_done’:
aio.c:158:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ {aka ‘volatile long int’} [-Wformat=]
  158 |           printf("  list[%d]. result = %d\n", i, aiocbp->aio_result);
      |                                        ~^        ~~~~~~~~~~~~~~~~~~
      |                                         |              |
      |                                         int            ssize_t {aka volatile long int}
      |                                        %ld
aio.c: In function ‘remove_done’:
aio.c:222:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ {aka ‘volatile long int’} [-Wformat=]
  222 |           printf("  list[%d]. result = %d\n", i, aiocbp->aio_result);
      |                                        ~^        ~~~~~~~~~~~~~~~~~~
      |                                         |              |
      |                                         int            ssize_t {aka volatile long int}
      |                                        %ld

sporadic2.c: In function ‘sporadic2_test’:
sporadic2.c:313:10: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
  313 |   printf("Sporadic 1: prio high %d, low %d, repl %" PRIi32 " ns\n",
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/xiaoxiang/backup/os/nuttx/nuttx/include/stdint.h:35,
                 from /home/xiaoxiang/backup/os/nuttx/nuttx/include/sys/types.h:32,
                 from /home/xiaoxiang/backup/os/nuttx/nuttx/include/stdio.h:30,
                 from sporadic2.c:27:
/home/xiaoxiang/backup/os/nuttx/nuttx/include/arch/inttypes.h:51:24: note: format string is defined here
   51 | #  define PRIi32      "i"
sporadic2.c:315:10: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
  315 |   printf("Sporadic 2: prio high %d, low %d, repl %" PRIi32 " ns\n",
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-31 14:07:25 -03:00
..
aio.c testing/ostest: Fix the compiler warning 2021-10-31 14:07:25 -03:00
barrier.c testing/ostest/barrier: Remove duplicate initialization of the barrier's 2021-07-28 21:13:14 -07:00
cancel.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
cond.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
dev_null.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
fpu.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
getopt.c apps/testing/ostest: Add test for required argument format 2021-04-04 14:14:21 -05:00
Kconfig Change the defaults of stack size configs to DEFAULT_TASK_STACKSIZE 2020-03-27 02:43:11 -05:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile testing/ostest: Add a test of the getopt() family of interfaces. 2021-04-03 01:07:34 -05:00
mqueue.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
mutex.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
nsem.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
ostest_main.c testing/ostest: Report "ERROR" the same way for all the test cases. 2021-04-30 09:17:14 -03:00
ostest.h testing/ostest: Add a test of the getopt() family of interfaces. 2021-04-03 01:07:34 -05:00
posixtimer.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
prioinherit.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
pthread_cleanup.c testing: fix relative path CI error 2021-06-16 09:03:06 -05:00
pthread_rwlock_cancel.c testing: fix relative path CI error 2021-06-16 09:03:06 -05:00
pthread_rwlock.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
restart.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
rmutex.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
robust.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
roundrobin.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
sem.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
semtimed.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
setvbuf.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
sigev_thread.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
sighand.c testing/ostest/sighand.c: Fix printf format warnings 2020-11-13 05:51:23 -08:00
signest.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
sigprocmask.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
specific.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
sporadic2.c testing/ostest: Fix the compiler warning 2021-10-31 14:07:25 -03:00
sporadic.c Extend Testing of Sporadic Schedule in OS test 2021-03-18 19:57:58 -07:00
suspend.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
timedmqueue.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
timedmutex.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
timedwait.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00
tls.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
vfork.c testing: update licenses to Apache 2021-06-10 08:49:24 -05:00
waitpid.c testing: ostest: nxstyle fixes 2021-06-10 08:49:24 -05:00