diff options
author | Joel Sherrill <joel@rtems.org> | 2017-04-23 12:53:44 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2017-04-23 12:53:44 -0500 |
commit | 473a3cd00767e5deb8f5be7be2fcbe80fcb6535b (patch) | |
tree | d2ad2f231d182ab86768bd85705900a8720289c5 | |
parent | amba/ahbstat.c: Correct printf() format (diff) | |
download | rtems-473a3cd00767e5deb8f5be7be2fcbe80fcb6535b.tar.bz2 |
rtems/inttypes.h: Add PRIdioctl_command_t
-rw-r--r-- | cpukit/include/rtems/inttypes.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/include/rtems/inttypes.h b/cpukit/include/rtems/inttypes.h index 023353fe40..1d767d9be7 100644 --- a/cpukit/include/rtems/inttypes.h +++ b/cpukit/include/rtems/inttypes.h @@ -120,11 +120,12 @@ extern "C" { /* rtems_task_argument is a typedef to Thread_Entry_numeric_type */ #define PRIdrtems_task_argument PRIdThread_Entry_numeric_type -/* rtems_event_set is a typedef to unit32_t */ +/* rtems_event_set is a typedef to uint32_t */ #define PRIxrtems_event_set PRIx32 -/* HACK: newlib defines pthread_t as a typedef to __uint32_t */ -/* HACK: There is no portable way to print pthread_t's */ +/* newlib defines pthread_t as a typedef to __uint32_t which matches + * RTEMS expectations for an Object ID. + */ #define PRIxpthread_t PRIx32 /* rtems_signal_set is a typedef to uint32_t */ @@ -133,6 +134,9 @@ extern "C" { /* newlib's ino_t is a typedef to "unsigned long" */ #define PRIxino_t "lx" +/* ioctl_command_t */ +#define PRIdioctl_command_t PRId32 + /**@}*/ #ifdef __cplusplus |