diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 11:36:09 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 11:36:09 +0000 |
commit | 73ae9de87c5d2321e8e4b0990e1ac77b1d4efa6f (patch) | |
tree | cab65cb5b14ad94ae8326bbd87206611b76171aa /testsuites | |
parent | 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-73ae9de87c5d2321e8e4b0990e1ac77b1d4efa6f.tar.bz2 |
Use PRIxrtems_id to print rtems_ids.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/libtests/rtmonuse/init.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/rtmonuse/task1.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/libtests/rtmonuse/init.c b/testsuites/libtests/rtmonuse/init.c index 13c5bc1566..5dd3b2f967 100644 --- a/testsuites/libtests/rtmonuse/init.c +++ b/testsuites/libtests/rtmonuse/init.c @@ -39,7 +39,7 @@ rtems_task Init( status = rtems_rate_monotonic_create( period, &rmid ); directive_failed( status, "rtems_rate_monotonic_create" ); printf( - "INIT - rtems_rate_monotonic_create id = 0x%08x (stays inactive)\n", + "INIT - rtems_rate_monotonic_create id = 0x%08" PRIxrtems_id " (stays inactive)\n", rmid ); diff --git a/testsuites/libtests/rtmonuse/task1.c b/testsuites/libtests/rtmonuse/task1.c index 8284caa3cc..a7ca64a997 100644 --- a/testsuites/libtests/rtmonuse/task1.c +++ b/testsuites/libtests/rtmonuse/task1.c @@ -40,20 +40,20 @@ rtems_task Task_1_through_5( status = rtems_rate_monotonic_create( argument, &rmid ); directive_failed( status, "rtems_rate_monotonic_create" ); put_name( Task_name[ argument ], FALSE ); - printf( "- rtems_rate_monotonic_create id = 0x%08x\n", rmid ); + printf( "- rtems_rate_monotonic_create id = 0x%08" PRIxrtems_id "\n", rmid ); status = rtems_rate_monotonic_ident( argument, &test_rmid ); directive_failed( status, "rtems_rate_monotonic_ident" ); put_name( Task_name[ argument ], FALSE ); - printf( "- rtems_rate_monotonic_ident id = 0x%08x\n", test_rmid ); + printf( "- rtems_rate_monotonic_ident id = 0x%08" PRIxrtems_id "\n", test_rmid ); if ( rmid != test_rmid ) { - printf( "RMID's DO NOT MATCH (0x%x and 0x%x)\n", rmid, test_rmid ); + printf( "RMID's DO NOT MATCH (0x%" PRIxrtems_id " and 0x%" PRIxrtems_id ")\n", rmid, test_rmid ); rtems_test_exit( 0 ); } put_name( Task_name[ argument ], FALSE ); - printf( "- (0x%08x) period %d\n", rmid, Periods[ argument ] ); + printf( "- (0x%08" PRIxrtems_id ") period %d\n", rmid, Periods[ argument ] ); status = rtems_task_wake_after( 2 ); directive_failed( status, "rtems_task_wake_after" ); |