Changeset 91f39a5 in rtems for testsuites
- Timestamp:
- 07/24/18 09:56:25 (6 years ago)
- 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)
- Location:
- testsuites/smptests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/smptests/smpschedaffinity01/init.c
rbf199e0c r91f39a5 94 94 /* Skip if this cpu doesn't exist, don't create task */ 95 95 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 ); 97 101 continue; 98 102 } … … 107 111 ); 108 112 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 ); 111 119 sc = rtems_task_set_affinity( task_data[ i ].id, size, &task_data[i].cpuset ); 112 120 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 ); 115 127 sc = rtems_task_start( task_data[ i ].id, task, i ); 116 128 rtems_test_assert(sc == RTEMS_SUCCESSFUL); … … 119 131 /* spin for 100 ticks */ 120 132 test_delay(100); 121 133 122 134 printf("Verify Tasks Ran\n"); 123 135 for (i = 0; i < NUM_CPUS; i++) { … … 125 137 /* Skip if this cpu doesn't exist, task doesn't exist */ 126 138 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 ); 128 144 continue; 129 145 } 130 146 131 147 /* 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 137 154 ); 138 155 -
testsuites/smptests/smpschedaffinity05/init.c
rbf199e0c r91f39a5 177 177 178 178 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", 180 181 i, 181 182 task_data[i].priority, … … 193 194 i = TASK_COUNT - 1; 194 195 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 ); 196 201 sc = rtems_task_set_priority( 197 202 task_data[ i ].id,
Note: See TracChangeset
for help on using the changeset viewer.