Ignore:
Timestamp:
Oct 7, 2014, 10:43:18 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
eb7f306d
Parents:
4efdc8e9
git-author:
Joel Sherrill <joel.sherrill@…> (10/07/14 22:43:18)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:57)
Message:

samples/unlimited: Fix printf() warning and clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/unlimited/init.c

    r4efdc8e9 r51a95ff9  
    5656rtems_task test_task(
    5757  rtems_task_argument my_number
    58   )
     58)
    5959{
    6060  rtems_event_set out;
     61  unsigned int    my_n = (unsigned int) my_number;
    6162
    62   printf( "task %" PRIdrtems_task_argument " has started.\n",  my_number);
     63  printf( "task %u has started.\n",  my_n);
    6364
    6465  rtems_event_receive(1, RTEMS_WAIT | RTEMS_EVENT_ANY, 0, &out);
    6566
    66   printf( "task %" PRIdrtems_task_argument " ending.\n",  my_number);
     67  printf( "task %u ending.\n",  my_n);
    6768
    6869  rtems_task_delete(RTEMS_SELF);
    6970}
    7071
    71 void destory_all_tasks(
     72void destroy_all_tasks(
    7273  const char *who
    7374)
     
    7980   */
    8081
    81   for (task = 0; task < MAX_TASKS; task++)
    82     if (task_id[task])
    83     {
    84       printf(" %s : signal task %08" PRIxrtems_id " to delete, ", who, task_id[task]);
     82  for (task = 0; task < MAX_TASKS; task++) {
     83    if (task_id[task]) {
     84      printf(
     85        " %s : signal task %08" PRIxrtems_id " to delete, ",
     86         who,
     87         task_id[task]
     88      );
    8589      fflush(stdout);
    8690      rtems_event_send(task_id[task], 1);
    8791      task_id[task] = 0;
    8892    }
     93  }
    8994}
    9095
    9196bool status_code_bad(
    9297  rtems_status_code status_code
    93   )
     98)
    9499{
    95100  if (status_code != RTEMS_SUCCESSFUL)
Note: See TracChangeset for help on using the changeset viewer.