testsuites/psxtests/psx06: Fix printing format error

This commit is contained in:
tangkun
2024-11-30 02:42:53 +08:00
committed by 坤 唐
parent d0d2cf2733
commit fc0c3b304b
3 changed files with 3 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ void *POSIX_Init(
/* switch to task 1 */
key_data = pthread_getspecific( Key_id );
printf( "Init: Got the key value of %ld\n",
printf( "Init: Got the key value of %lu\n",
(unsigned long) ((uint32_t *)key_data - Data_array) );
remaining = sleep( 3 );

View File

@@ -56,7 +56,7 @@ void *Task_1(
rtems_test_assert( !status );
key_data = pthread_getspecific( Key_id );
printf( "Task_1: Got the key value of %ld\n",
printf( "Task_1: Got the key value of %lu\n",
(unsigned long) ((uint32_t *)key_data - Data_array) );
if ( status )
printf( "status = %d\n", status );

View File

@@ -57,7 +57,7 @@ void *Task_2(
rtems_test_assert( !status );
key_data = pthread_getspecific( Key_id );
printf( "Task_2: Got the key value of %ld\n",
printf( "Task_2: Got the key value of %lu\n",
(unsigned long) ((uint32_t *)key_data - Data_array) );
if ( status )
printf( "status = %d\n", status );