@@ -97,7 +97,7 @@ static void test_zicboz(void *arg)
97
97
block_size = pair .value ;
98
98
ksft_test_result (rc == 0 && pair .key == RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE &&
99
99
is_power_of_2 (block_size ), "Zicboz block size\n" );
100
- ksft_print_msg ("Zicboz block size: %ld \n" , block_size );
100
+ ksft_print_msg ("Zicboz block size: %llu \n" , block_size );
101
101
102
102
illegal_insn = false;
103
103
cbo_zero (& mem [block_size ]);
@@ -121,7 +121,7 @@ static void test_zicboz(void *arg)
121
121
for (j = 0 ; j < block_size ; ++ j ) {
122
122
if (mem [i * block_size + j ] != expected ) {
123
123
ksft_test_result_fail ("cbo.zero check\n" );
124
- ksft_print_msg ("cbo.zero check: mem[%d ] != 0x%x\n" ,
124
+ ksft_print_msg ("cbo.zero check: mem[%llu ] != 0x%x\n" ,
125
125
i * block_size + j , expected );
126
126
return ;
127
127
}
@@ -201,7 +201,7 @@ int main(int argc, char **argv)
201
201
pair .key = RISCV_HWPROBE_KEY_IMA_EXT_0 ;
202
202
rc = riscv_hwprobe (& pair , 1 , sizeof (cpu_set_t ), (unsigned long * )& cpus , 0 );
203
203
if (rc < 0 )
204
- ksft_exit_fail_msg ("hwprobe() failed with %d \n" , rc );
204
+ ksft_exit_fail_msg ("hwprobe() failed with %ld \n" , rc );
205
205
assert (rc == 0 && pair .key == RISCV_HWPROBE_KEY_IMA_EXT_0 );
206
206
207
207
if (pair .value & RISCV_HWPROBE_EXT_ZICBOZ ) {
0 commit comments