Changeset f15fc6a in rtems


Ignore:
Timestamp:
Oct 27, 2009, 8:13:58 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
69c6619
Parents:
d0f47c22
Message:

Use PRIxrtems_event_set to print rtems_event_set's.

Location:
testsuites/sptests/sp11
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp11/task1.c

    rd0f47c22 rf15fc6a  
    4545  directive_failed( status, "rtems_event_receive" );
    4646  printf(
    47     "TA1 - RTEMS_EVENT_14 and RTEMS_EVENT_15 received - eventout => %08x\n",
     47    "TA1 - RTEMS_EVENT_14 and RTEMS_EVENT_15 received - eventout => %08" PRIxrtems_event_set "\n",
    4848    eventout
    4949  );
     
    6363  );
    6464  directive_failed( status, "rtems_event_receive" );
    65   printf( "TA1 - RTEMS_EVENT_14 received - eventout => %08x\n", eventout );
     65  printf( "TA1 - RTEMS_EVENT_14 received - eventout => %08" PRIxrtems_event_set "\n", eventout );
    6666
    6767  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_19 to TA2" );
     
    9292  );
    9393  directive_failed( status, "rtems_event_receive of 18" );
    94   printf( "TA1 - RTEMS_EVENT_18 received - eventout => %08x\n", eventout );
     94  printf( "TA1 - RTEMS_EVENT_18 received - eventout => %08" PRIxrtems_event_set "\n", eventout );
    9595
    9696  status = rtems_clock_get_tod( &time );
     
    113113  );
    114114  directive_failed( status, "rtems_event_receive of 3 and 22" );
    115   printf( "TA1 - RTEMS_EVENT_3 received - eventout => %08x\n", eventout );
     115  printf( "TA1 - RTEMS_EVENT_3 received - eventout => %08" PRIxrtems_event_set "\n", eventout );
    116116
    117117  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_4 to self" );
     
    130130  );
    131131  directive_failed( status, "rtems_event_receive" );
    132   printf( "TA1 - RTEMS_EVENT_4 received - eventout => %08x\n", eventout );
     132  printf( "TA1 - RTEMS_EVENT_4 received - eventout => %08" PRIxrtems_event_set "\n", eventout );
    133133
    134134rtems_test_pause();
     
    208208    directive_failed( status, "rtems_clock_get_tod" );
    209209
    210     printf( "TA1 - RTEMS_EVENT_1 received - eventout => %08x - ", eventout );
     210    printf( "TA1 - RTEMS_EVENT_1 received - eventout => %08" PRIxrtems_event_set " - ", eventout );
    211211    print_time( "at ", &time, "\n" );
    212212
     
    289289  );
    290290  directive_failed( status, "rtems_event_receive" );
    291   printf( "TA1 - RTEMS_EVENT_11 received - eventout => %08x\n", eventout );
     291  printf( "TA1 - RTEMS_EVENT_11 received - eventout => %08" PRIxrtems_event_set "\n", eventout );
    292292
    293293rtems_test_pause();
     
    362362    &eventout
    363363  );
    364   if ( eventout ) printf( "ERROR -0x%08x events received\n", eventout );
     364  if ( eventout ) printf( "ERROR -0x%08" PRIxrtems_event_set " events received\n", eventout );
    365365  else            puts( "TA1 - no events received" );
    366366  fatal_directive_status(
     
    384384  );
    385385  if ( eventout == RTEMS_EVENT_10 ) puts( "TA1 - RTEMS_EVENT_10 received" );
    386   else      printf( "ERROR -0x%08x events received\n", eventout );
     386  else      printf( "ERROR -0x%08" PRIxrtems_event_set " events received\n", eventout );
    387387  directive_failed( status, "rtems_event_receive all events" );
    388388
  • testsuites/sptests/sp11/task2.c

    rd0f47c22 rf15fc6a  
    4040  );
    4141  directive_failed( status, "rtems_event_receive" );
    42   printf( "TA2 - RTEMS_EVENT_16 received - eventout => %08x\n", eventout );
     42  printf( "TA2 - RTEMS_EVENT_16 received - eventout => %08" PRIxrtems_event_set "\n", eventout );
    4343
    4444  puts(
     
    6060  directive_failed( status, "rtems_event_receive" );
    6161  printf(
    62     "TA2 - RTEMS_EVENT_17 or RTEMS_EVENT_18 received - eventout => %08x\n",
     62    "TA2 - RTEMS_EVENT_17 or RTEMS_EVENT_18 received - eventout => %08" PRIxrtems_event_set "\n",
    6363    eventout
    6464  );
     
    9797  directive_failed( status, "rtems_clock_get_tod" );
    9898
    99   printf( "TA2 - RTEMS_EVENT_10 received - eventout => %08x\n", eventout );
     99  printf( "TA2 - RTEMS_EVENT_10 received - eventout => %08" PRIxrtems_event_set "\n", eventout );
    100100  print_time( "TA2 - rtems_clock_get_tod - ", &time, "\n" );
    101101
     
    108108  );
    109109  directive_failed( status, "rtems_event_receive" );
    110   printf( "TA2 - eventout => %08x\n", eventout );
     110  printf( "TA2 - eventout => %08" PRIxrtems_event_set "\n", eventout );
    111111
    112112  puts( "TA2 - rtems_event_receive - RTEMS_EVENT_19 - RTEMS_NO_WAIT" );
     
    118118  );
    119119  directive_failed( status, "rtems_event_receive" );
    120   printf( "TA2 - RTEMS_EVENT_19 received - eventout => %08x\n", eventout );
     120  printf( "TA2 - RTEMS_EVENT_19 received - eventout => %08" PRIxrtems_event_set "\n", eventout );
    121121
    122122  puts( "TA2 - rtems_task_delete - deletes self" );
Note: See TracChangeset for help on using the changeset viewer.