Changeset d420b67 in rtems for testsuites/support


Ignore:
Timestamp:
Apr 14, 2017, 8:18:56 PM (3 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
4fd25c4
Parents:
54bdf0c
git-author:
Joel Sherrill <joel@…> (04/14/17 20:18:56)
git-committer:
Joel Sherrill <joel@…> (04/18/17 16:24:46)
Message:

Merge tmacros.h PRIxxx constants from testsuites/ into <rtems/inttypes.h>

This completes the initial creation of rtems/inttypes.h based on all
existing PRIxxx definitions contained in RTEMS Project owned code.

closes #2983.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/tmacros.h

    r54bdf0c rd420b67  
    1919
    2020#include <inttypes.h>
     21#include <rtems/inttypes.h>
    2122#include <bsp.h>    /* includes <rtems.h> */
    2223
     
    306307  } while (0)
    307308
    308 /*
    309  * Various inttypes.h-stype macros to assist printing
    310  * certain system types on different targets.
    311  */
    312 
    313 #if defined(RTEMS_USE_16_BIT_OBJECT)
    314 #define PRIxrtems_id PRIx16
    315 #else
    316 #define PRIxrtems_id PRIx32
    317 #endif
    318 
    319 /* c.f. cpukit/score/include/rtems/score/priority.h */
    320 #define PRIdPriority_Control PRIu64
    321 #define PRIxPriority_Control PRIx64
    322 /* rtems_task_priority is a typedef to Priority_Control */
    323 #define PRIdrtems_task_priority PRIu32
    324 #define PRIxrtems_task_priority PRIx32
    325 
    326 /* c.f. cpukit/score/include/rtems/score/watchdog.h */
    327 #define PRIdWatchdog_Interval PRIu32
    328 /* rtems_interval is a typedef to Watchdog_Interval */
    329 #define PRIdrtems_interval    PRIdWatchdog_Interval
    330 
    331 /* c.f. cpukit/score/include/rtems/score/thread.h */
    332 #define PRIdThread_Entry_numeric_type PRIuPTR
    333 /* rtems_task_argument is a typedef to Thread_Entry_numeric_type */
    334 #define PRIdrtems_task_argument PRIdThread_Entry_numeric_type
    335 
    336 /* rtems_event_set is a typedef to unit32_t */
    337 #define PRIxrtems_event_set PRIx32
    338 
    339 /* HACK: newlib defines pthread_t as a typedef to __uint32_t */
    340 /* HACK: There is no portable way to print pthread_t's */
    341 #define PRIxpthread_t PRIx32
    342 
    343 /* rtems_signal_set is a typedef to uint32_t */
    344 #define PRIxrtems_signal_set PRIx32
    345 
    346 /* newlib's ino_t is a typedef to "unsigned long" */
    347 #define PRIxino_t "lx"
    348 
    349309/**
    350310 * This assists in clearly disabling warnings on GCC in certain very
Note: See TracChangeset for help on using the changeset viewer.