Changeset 91f39a5 in rtems for testsuites


Ignore:
Timestamp:
07/24/18 09:56:25 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
caccc5b
Parents:
bf199e0c
git-author:
Sebastian Huber <sebastian.huber@…> (07/24/18 09:56:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/24/18 11:00:56)
Message:

smptests: Fix format warnings

Location:
testsuites/smptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpschedaffinity01/init.c

    rbf199e0c r91f39a5  
    9494      /* Skip if this cpu doesn't exist, don't create task */
    9595      if ( task_data[i].expected_cpu >= cpu_count ) {
    96         printf( "Skipping TA0%d because on a core we do not have\n", i );
     96        printf(
     97          "Skipping TA0%" PRIdrtems_task_argument
     98            " because on a core we do not have\n",
     99          i
     100        );
    97101        continue;
    98102      }
     
    107111      );
    108112      rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    109  
    110       printf("Set TA%d affinity to cpu %d\n", i, task_data[i].expected_cpu );
     113
     114      printf(
     115        "Set TA%" PRIdrtems_task_argument " affinity to cpu %d\n",
     116        i,
     117        task_data[i].expected_cpu
     118      );
    111119      sc = rtems_task_set_affinity( task_data[ i ].id, size, &task_data[i].cpuset );
    112120      rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    113      
    114       printf("Start TA%d on cpu %d\n", i, task_data[i].expected_cpu);
     121
     122      printf(
     123        "Start TA%" PRIdrtems_task_argument " on cpu %d\n",
     124        i,
     125        task_data[i].expected_cpu
     126      );
    115127      sc = rtems_task_start( task_data[ i ].id, task, i );
    116128      rtems_test_assert(sc == RTEMS_SUCCESSFUL);
     
    119131  /* spin for 100 ticks */
    120132  test_delay(100);
    121  
     133
    122134  printf("Verify Tasks Ran\n");
    123135  for (i = 0; i < NUM_CPUS; i++) {
     
    125137    /* Skip if this cpu doesn't exist, task doesn't exist */
    126138    if ( task_data[i].expected_cpu >= cpu_count ) {
    127       printf( "Skipping TA0%d because on a core we do not have\n", i );
     139      printf(
     140        "Skipping TA0%" PRIdrtems_task_argument
     141          " because on a core we do not have\n",
     142        i
     143      );
    128144      continue;
    129145    }
    130146
    131147    /* print the expected and actual values */
    132     printf( "TA0%d: ran=%d expected=%d actual=%d\n",
    133      i,
    134      task_data[i].ran,
    135      task_data[i].expected_cpu,
    136      task_data[i].actual_cpu
     148    printf(
     149      "TA0%" PRIdrtems_task_argument ": ran=%d expected=%d actual=%d\n",
     150      i,
     151      task_data[i].ran,
     152      task_data[i].expected_cpu,
     153      task_data[i].actual_cpu
    137154    );
    138155
  • testsuites/smptests/smpschedaffinity05/init.c

    rbf199e0c r91f39a5  
    177177
    178178      printf(
    179         "Start TA%d at priority %" PRIu32 " on cpu %d\n",
     179        "Start TA%" PRIdrtems_task_argument " at priority %"
     180          PRIu32 " on cpu %d\n",
    180181         i,
    181182         task_data[i].priority,
     
    193194  i = TASK_COUNT - 1;
    194195  task_data[ i ].priority = 4;
    195   printf("Set TA%d priority %" PRIu32 "\n", i,task_data[i].priority );
     196  printf(
     197    "Set TA%" PRIdrtems_task_argument " priority %" PRIu32 "\n",
     198    i,
     199    task_data[i].priority
     200  );
    196201  sc = rtems_task_set_priority(
    197202    task_data[ i ].id,
Note: See TracChangeset for help on using the changeset viewer.