From 473a3cd00767e5deb8f5be7be2fcbe80fcb6535b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 23 Apr 2017 12:53:44 -0500 Subject: rtems/inttypes.h: Add PRIdioctl_command_t --- cpukit/include/rtems/inttypes.h | 10 +++++++--- 1 file 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 -- cgit v1.2.3