forked from Imagelibrary/rtems
spcpuset01: Use %zd for size_t to eliminate warning
This commit is contained in:
@@ -77,7 +77,7 @@ static void test_cpu_set_case_1(size_t cpu)
|
||||
/*
|
||||
* Set to all zeros and verify
|
||||
*/
|
||||
printf( "Exercise CPU_ZERO, CPU_SET(%u), and CPU_ISET\n", cpu );
|
||||
printf( "Exercise CPU_ZERO, CPU_SET(%zu), and CPU_ISET\n", cpu );
|
||||
CPU_ZERO(&set1);
|
||||
CPU_SET(cpu, &set1);
|
||||
|
||||
@@ -99,7 +99,7 @@ static void test_cpu_clr_case_1(size_t cpu)
|
||||
/*
|
||||
* Set to all zeros and verify
|
||||
*/
|
||||
printf( "Exercise CPU_FILL, CPU_CLR(%u), and CPU_ISET\n", cpu );
|
||||
printf( "Exercise CPU_FILL, CPU_CLR(%zu), and CPU_ISET\n", cpu );
|
||||
CPU_FILL(&set1);
|
||||
CPU_CLR(cpu, &set1);
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ void test_cpu_and_case_1(size_t cpu1, size_t cpu2)
|
||||
size_t i;
|
||||
|
||||
/* AND set1 and set2 */
|
||||
printf( "Exercise CPU_AND with bits %d,%d\n",cpu1,cpu2 );
|
||||
printf( "Exercise CPU_AND with bits %zd,%zd\n", cpu1, cpu2 );
|
||||
CPU_AND(&set3, &set1, &set2);
|
||||
|
||||
/* test if all bits clear except cpu1 */
|
||||
@@ -51,7 +51,7 @@ void test_cpu_nand_case_1(size_t cpu1, size_t cpu2)
|
||||
size_t i;
|
||||
|
||||
/* NAND set1 and set2 */
|
||||
printf( "Exercise CPU_NAND with bits %d,%d\n",cpu1,cpu2 );
|
||||
printf( "Exercise CPU_NAND with bits %zd,%zd\n", cpu1, cpu2 );
|
||||
CPU_NAND(&set3, &set1, &set2);
|
||||
|
||||
/* test if all bits clear except cpu1 */
|
||||
@@ -68,7 +68,7 @@ void test_cpu_or_case_1(size_t cpu1, size_t cpu2)
|
||||
size_t i;
|
||||
|
||||
/* OR set1 and set2 */
|
||||
printf( "Exercise CPU_OR with bits %d,%d\n",cpu1,cpu2 );
|
||||
printf( "Exercise CPU_OR with bits %zd,%zd\n", cpu1, cpu2 );
|
||||
CPU_OR(&set3, &set1, &set2);
|
||||
|
||||
/* test if all bits clear except cpu1 */
|
||||
@@ -85,7 +85,7 @@ void test_cpu_xor_case_1(size_t cpu1, size_t cpu2)
|
||||
size_t i;
|
||||
|
||||
/* XOR set1 and set2 */
|
||||
printf( "Exercise CPU_XOR with bits %d,%d\n",cpu1,cpu2 );
|
||||
printf( "Exercise CPU_XOR with bits %zd,%zd\n", cpu1, cpu2 );
|
||||
CPU_XOR(&set3, &set1, &set2);
|
||||
|
||||
/* test if all bits clear except cpu1 */
|
||||
|
||||
Reference in New Issue
Block a user